[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pan-devel] Watch/Ignore in 0.95
From: |
Charles Kerr |
Subject: |
Re: [Pan-devel] Watch/Ignore in 0.95 |
Date: |
Tue, 2 May 2006 17:56:42 -0500 (CDT) |
User-agent: |
SquirrelMail/1.4.6 [CVS] |
> On Tue, 02 May, 2006 at 23:09 +0200, Christophe Lambin wrote:
>> References: ^<address@hidden>
>
> Incidently, is '^' (i.e. begins with) the best choice for this header ?
> What if another newsreader munges the header and inserts some other
> message-id before the one in the scorefile ?
I agree with both these messages.
What do you think of replacing the gui.cc code with:
// if this is the article or a descendant...
Scorefile::AddItem items[2];
items[0].on = true;
items[0].negate = false;
items[0].key = "Message-Id";
items[0].value = TextMatch::create_regex (tok, TextMatch::IS);
items[1].on = true;
items[1].negate = false;
items[1].key = "References";
items[1].value = TextMatch::create_regex (tok, TextMatch::CONTAINS);
Which generates output like:
%BOS
%Score created by Pan on Tue May 2 17:49:31 2006
[alt.religion.kibology]
Score:: =9999
Expires: 6/2/2006
Message-Id: ^<address@hidden>$
References: <address@hidden>
%EOS
Charles