I've revised the rule from:

header  HK_NAME_DRUGS  From:name =~ /(viagra|cialis)/mi

to:

header  HK_NAME_DRUGS  From:name =~ /(viagra|\bcialis|cialis\b)/mi

Adam,

A boundary check is the obvious upgrade, I agree.

My multi-lingual dictionary only has four matches for that now,
judicialis, sternofacialis, viagram, and viagraph, all of which are
limited to the american-english-insane dictionary obtained from
http://wordlist.sourceforge.net/ (apt-get install wamerican-insane) and
should be sufficiently rare as From names (or anything else for that
matter).  The previous pattern matched 287 words.

Very nice!  Added this to my notes.

Regards,
KAM

Reply via email to