procmail
[Top] [All Lists]

Re: Thanks, Lester & Phil and all. :>

1996-08-02 12:19:04
Now, is there any way to scan for conditions in several different
header fields, when what you want is everything From: a certain
domain OR with a certain domain in the Message-ID:, as opposed to
messages that are From: that domain AND show the domain in the
Message-ID:?  Can this be done?  If so, how?

Just place the headers inside the alternatives:

    :0
    * (^From:.*spam-monster@|\
       ^Reply-To:(_dot_)*greedy(_dot_)guy(_at_)slimeball(_dot_)com|\
       ^Subject: .*(FREE|ABSOLUTELY NO COST|REPLY IMMEDIATELY)|\
       ^Cc:(_dot_)*money(_dot_)grubber(_at_)slimeball(_dot_)com)

    junkmail

This will match a mail with *any* of the named fields (any = one or more).
And, notice the nested parenthetical expression, where the subject can
vary.
_____________________________________________________________________
Alan Stebbens           <stebbens(_at_)sgi(_dot_)com>             (415) 933-6437
Digital TV, Silicon Interactive Group,  Silicon Graphics, Inc.  (SGI)
M/S:9L991,     2011 N. Shoreline Blvd.,     Mountain View, CA   94043
PGP Key Fingerprint: 94 A7 4B AB 1C F0 4D 92  DD BC B5 D7 11 A0 DC B3

<Prev in Thread] Current Thread [Next in Thread>