> Rob Zimmerman writes:
> >Many of the spams received by my clients are BCC'd were the To: field
> >= the From: field. Is their a rule set that can be used to bounce this
> >with a nice message attached.
> Here's a procmail recipe someone posted:
> # sender and recipient identical?
> Eone=`formail -x To: | md5`
> Etwo=`formail -x From: | md5`
> :0:
> * ? test $Eone = $Etwo
> to=from-folder
> (or something else...)
That uses 7 external processes when it can easily be done entirely in
procmail. At the very least, I don't see any point in doing md5 sums of
the addresses.
Here's what I use, it attempts to match only the actual address, without
any comments:
:0:
* $ ^From:.*$\MATCH
suspect
The whitespace inside brackets is a tab and a space. The $\ syntax
requires a recent version of procmail.
--
You must realize that the computer has it in for you. The irrefutable
proof of this is that the computer always does what you tell it to do.