On Wed, 24 Sep 2003 14:59:44 -0400 (Eastern Daylight Time) Alan G Isaac <[EMAIL PROTECTED]> wrote:
> if((containsi(header(),"X-AU-spam: Gauge=####"))){move("spam");}
>
> Could this be changed to something along the lines of:
> if((containsi(header("X-AU-spam"),"Gauge=####"))){move("spam");}
> Motivation: the header name and Gauge format are stable,
> but other formatting may shift.
I suppose that using regular expression is the way to go. There are
corresponding enties to be chosen in the drop-down list instead of
"contains". The following should work, I guess, although I never
actually used regexp in filters:
if((matchregexi(header(),"^X-AU-spam:.*Gauge=####"))){move("spam");}
This says: look for "X-AU-spam:" right at the beginning of a line, then
any number of any character, then "Gauge=####".
Hope this helps.
--
Xavier Nodet
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." - Benjamin Franklin, 1759.
pgp00000.pgp
Description: PGP signature
