Aargh. It's good you don't write SpamAssassin rules for a living.

Please, anyone: do not use this rule, as it matches _ANY_ email that
has a digit _anywhere_ in the body of the email, which is practically
all emails.

I suggest KAM puts "mastering regular expressions" under his pillow
the next few weeks :)

Hey now, that's a little harsh! I'm proud to say I do write rules for a "living" and hope to contribute more. http://svn.apache.org/viewvc/spamassassin/trunk/CREDITS?root=Apache-SVN&view=markup

Don't make me get my Jan-Pieter voodoo doll out!

Anyway, the current rule I believe is actually worth using is this and more revisions might be made at http://www.peregrinehw.com/downloads/SpamAssassin/contrib/KAM.cf

#KAM NUMBER EMAILS
header          __KAM_NUMBER1   Subject =~ /^\d+$/i
body            __KAM_NUMBER2   /\d{1,6}/
meta KAM_NUMBER ((__KAM_NUMBER1 + __KAM_NUMBER2 + MIME_HTML_ONLY + HTML_SHORT_LENGTH) >= 4)
describe        KAM_NUMBER      Silly Number Emails
score           KAM_NUMBER      0.1

Regards,
KAM
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to