Custom Rules
Denis Beauchemin
Denis.Beauchemin at USHERBROOKE.CA
Mon Sep 26 21:01:10 IST 2005
This is a cryptographically signed message in MIME format.
--------------ms040700060509040904030201
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Jeff Graves wrote:
>I'm getting a bunch of spamis spam slipping through and I'm running olde=
r
>versions of MailScanner and spamassasin (about a year old). I don't have=
>time right now to update or patch MailScanner or spamassin or add new
>rules_du_jour or whatever. All I'd like to do for the time being, is add=
a
>quick custom rule to catch this phrase "[ S P A M I S NOTIFICATION ]:" =
but
>I have no Perl regex experience. Spamassasin --lint complains about this=
>syntax to local.cf:
>
>body SPAMIS_CUSTOM_RULE \b\[ S P A M I S NOTIFICATION\]
>describe SPAMIS_CUSTOM_RULE Detects spam sent by spamis
>score SPAMIS_CUSTOM_RULE 12.0
>
> =20
>
Jeff,
You only forgot to put your RE (Regular Expression) between /.../:
body SPAMIS_CUSTOM_RULE /\[ S P A M I S NOTIFICATION\]/
While you're at it, append a trailing "i" to make it ignore case.
Further refinement: use "\s*" in place of optional whitespace.
body SPAMIS_CUSTOM_RULE /\[\s*S\s*P\s*A\s*M\s*I\s*S\s*NOTIFICATION\s*\]/i=
Denis
--=20
_
=B0v=B0 Denis Beauchemin, analyste
/(_)\ Universit=E9 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 Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
--------------ms040700060509040904030201
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQE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KAklvM
Sena0OCOqBFEZAktMfdi23J8kmXuEr4/p9lYxunq0TJXPwAAAAAAAA==
--------------ms040700060509040904030201--
More information about the MailScanner
mailing list