procmail
[Top] [All Lists]

Re: Mail addressed to me

1997-01-16 10:36:39
On Thu, 16 Jan 1997 bts8(_at_)netcom(_dot_)com wrote:
This seems to work OK for mail originating outside of netcom but for some 
reason, mail that originates on netcom gets matched by this recipe.  Can 
someone help me improve this?  I think this may have something to do with 

      * !^(To|cc|bcc):(.*[^a-z])?bts8\(_at_)netcom(_dot_)com

Bcc won't be in incoming headers, so we can remove that. And the @
doesn't need to be escaped.

this:   * !^(To|Cc):(_dot_)*[^a-z]?bts8(_at_)netcom(_dot_)com

or:     * !^TObts8(_at_)netcom(_dot_)com

I'd have to see a typical header to figure out why internal mail
isn't caught. If the internal mail is address differently, then you'll
have to use a second condition for that. For example, I can get mail
addressed in three ways:

        dnhunt, dnhunt(_at_)rain(_dot_)org, 
dnhunt(_at_)coyote(_dot_)rain(_dot_)org

If I wanted to reject any of these with a negative condition:

this:   * !^TOdnhunt(@(coyote.)?rain.org)?([ ,]|$)
or:     * !^(To|Cc):.*[^a-z0-9]dnhunt(@(coyote.)?rain.org)?([ ,]|$)

David


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