pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] Regex in pan?


From: Gordon Speedman
Subject: Re: [Pan-users] Regex in pan?
Date: Sat, 22 Dec 2012 14:27:55 -0500

I tried to edit the Score file, adding the followings and hit rescore
but nothing happens

%BOS
%Score created by Pan on Sat Dec 22 07:49:36 2012
[alt.binaries.magic]
Score:: =-9999
Expires: 1/22/2013
From: ^\w+\d+$
%EOS

%BOS
%Score created by Pan on Sat Dec 22 07:49:36 2012
[alt.binaries.magic]
Score:: =-9999
Expires: 1/22/2013
From: ^[a-z]+[0-9]+$
%EOS

On Sat, Dec 22, 2012 at 9:21 AM, Heinrich Müller
<address@hidden> wrote:
> Am 22.12.2012 13:51, schrieb Gordon Speedman:
>
>>>> Can you post the regex you used?
>>
>> It's not about the regex, I was unable to use regex as a rule at all.
>>
>> If I open Articles -> Edit Article's Watch/Ignore/Score -> add new
>> rule like "author is john doe" -> add & rescore then this "author is
>> john doe" rule appears in the panel and got scored accordingly.
>>
>> If I add new rule like "author match regex [:alpha:]+" -> add &
>> rescore then the panel is not updated with this rule (ie. still only
>> the "author is john doe" rule)
>>
>>
>> On Sat, Dec 22, 2012 at 5:08 AM, Heinrich Müller
>> <address@hidden> wrote:
>>>
>>> Am 22.12.2012 01:17, schrieb Gordon Speedman:
>>>>
>>>> I'm using Pan for windows and I can't add any scoring rules using
>>>> regex at all. Is this feature supported in Windows version? Also what
>>>> favor of regex is supported?
>>>>
>>>> --
>>>> -Godspeed
>>>>
>>>> _______________________________________________
>>>> Pan-users mailing list
>>>> address@hidden
>>>> https://lists.nongnu.org/mailman/listinfo/pan-users
>>>
>>> Can you post the regex you used?
>>>
>>> _______________________________________________
>>> Pan-users mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/pan-users
>>
>>
>>
>> --
>> -Godspeed
>>
>> _______________________________________________
>> Pan-users mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/pan-users
>
> Try using [0-9]+ instead.
>
> Does this work?
>
>
> _______________________________________________
> Pan-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/pan-users



-- 
-Godspeed



reply via email to

[Prev in Thread] Current Thread [Next in Thread]