procmail
[Top] [All Lists]

Re: [Procmail??] Apparently-To: Headers

1997-01-06 20:10:53
Bill Moseley writes:

Ok, so "legitimate" mail sometimes has Apparently-To: headers - so would it
be safe(er) to use something like this to trash messages with a bunch of
these headers - say twenty?

:0:
* -20^0
* 1^1 ^Apparently-To:
junkmail


How about ...

    #
    # If there is no "^To:" record in the message, then the message is,
    # almost certainly, junk mail.
    #
    :0:
    * !^To:.*
    junk

since the "^Apparently-To:" header record is inserted by sendmail in the
absense of a "To:" header.

        John

-- 

John Conover, 631 Lamont Ct., Campbell, CA., 95008, USA.
VOX 408.370.2688, FAX 408.379.9602
john(_at_)johncon(_dot_)com