Mail header From: rule
Denis Beauchemin
Denis.Beauchemin at USHERBROOKE.CA
Thu Jan 13 14:06:44 GMT 2005
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
D. Dowling wrote:
>Hi
>
>I have written a rule to search the From: field of a mail header. However,
>SpamAssassin does not identify and mark mail from the search string in the
>rule.
>
>For example, I want SpamAssassin to search for mail from any address with
>the suffix, tom.com,
>
>header TOM_AD_FROM From =~ /tom\.com/im
>describe TOM_AD_FROM From tom.com address
>score TOM_AD_FROM 1.5
>
>
>
>
I'm not sure this is the reason but I would drop the "m" at the end of
your regular expression search and I would also add some anchoring:
header TOM_AD_FROM From =~ /\@tom\.com$/i
Denis
--
_
°v° Denis Beauchemin, analyste
/(_)\ Université de Sherbrooke, S.T.I.
^ ^ T: 819.821.8000x2252 F: 819.821.8045
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
[ Part 2, "S/MIME Cryptographic Signature" ]
[ Application/X-PKCS7-SIGNATURE 4.4KB. ]
[ Unable to print this part. ]
More information about the MailScanner
mailing list