[Mimedefang] Fw: [Sare-users] Spam with numbers in subj and body
Kevin A. McGrail
kmcgrail at pccc.com
Tue Jun 6 11:04:00 EDT 2006
> 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
More information about the MIMEDefang
mailing list