Block mail by subject content
James Gray
james_gray at ocs.com
Wed Dec 15 20:50:09 GMT 2004
[ 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. ]
On Wed, 15 Dec 2004 10:30 pm, José Angel Blanco González wrote:
> Is it possible to block mails based on subject content. For example I want
> to block or mark as Spam all mails with certain subjects.
> How can I do this
>
> Thank you
SpamAssassin or MCP rule:
header SUITABLE_RULE_NAME Subject =~ /This is a Perl Regex/i
describe SUITABLE_RULE_NAME This trailing 'i' makes it case insenstive
score SUITABLE_RULE_NAME 100.00
That shoud score anything that matches "This is a Perl Regex" in the subject
and score it as 100 - well and truely spam.
(Hint: these questions have been answered many times in the archives. Do a
search on creating custom SpamAssassin rules)
Cheers,
James
------------------------ 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!
More information about the MailScanner
mailing list