Jim Hribnak writes on 25 September 1997 at 09:55:36
How can I use procmail to detect if the From: field has a domain name
associated with it? I have a spam that did not get trapped and I am
trying to think of a way to trap this one in the future..
Here is the headers...
[...]
From: CyberMarketing
Try something like (from my spamcheck.rc file)
# don't execpt all syntactially valid address - who's going to have
# a real email address of "foo_(_at_)-bar-(_dot_)com"?
spamcheck_word="[a-z0-9][-a-z0-9_.+]*[a-z0-9]+"
spamcheck_tld="(com|gov|org|edu|net|[a-z][a-z])"
spamcheck_email="\<${spamcheck_word}@(${spamcheck_word}\.)+${spamcheck_tld}\>"
:0h
* $!^From:(.*[^-a-z0-9_])?${spamcheck_email}
{ ... spam processing ... }
Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>
http://www.bristol.com/~DanS
Bristol Technology B.V. +31 33 450 50 50, ...51 (FAX)
Amersfoort, The Netherlands {info,jobs}(_at_)bristol(_dot_)com