procmail
[Top] [All Lists]

Wildcard usage in procmail

1998-05-20 08:21:15

I got a common problem.  I'm sure alot of you are aware of different
formats for a persons email address that is basicly the same thing, but
entirely different for the email program.  For example..  sending me a
message using "link(_at_)pulsar(_dot_)net" or 
"link(_at_)alpha(_dot_)pulsar(_dot_)net" will go to the
exact same machine.  The problem though is how do I make a filter that
will account for host names sometimes showing and sometimes not showing.
It happens surprisingly with some of my maillists too.

dagrfall-owner(_at_)dodo(_dot_)crown(_dot_)net or 
dagrfall-owner(_at_)crown(_dot_)net

All the wildcard examples I've seen never show wildcards in the middle of
the expression.  Its always at the beginning.  Is it possible to do
something like this:

^TO:(_dot_)*link(_at_)(_dot_)*pulsar(_dot_)net

so that link(_at_)pulsar(_dot_)net and link(_at_)alpha(_dot_)pulsar(_dot_)net 
will be treated the same
way?  Or do I need to use different wildcards or something?


One other thing too is I know there is a ^TO macro which covers the To:,
Cc:, and Bcc: fields..  but is there a macro for the entire header?  Like
what if I want to filter mail that has a maillist address ANYWHERE in the
header?  I have some maillists which sometimes has its address in the
From: field, and sometimes its in the To: field (And yet it gets to me
somehow.  heh).  Or is that where I need to start using muliple
conditions?  If so an example would be great.

Any help would be greatly appericated.  Thanks,

-Matt Cortes
link(_at_)pulsar(_dot_)net
Owner/President
Pulsar Communications

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