procmail
[Top] [All Lists]

address/domain matching question

2003-04-02 09:57:03
Here is my recipe segment:
-------------------------------------------------------
FRIENDS=/etc/procmail/friends
:0
* ? (formail -x From: -x Sender: -x Resent-From: | fgrep -iqf $FRIENDS)
-------------------------------------------------------
What can I do to this recipe to have it match user(_at_)domain1(_dot_)com or
@domain2.com?

There are some time I want to match an entire domain, but others I want to
match only the single address for a domain.

Example:
I want to match customer(_at_)hotmail(_dot_)com but not 
spam(_at_)hotmail(_dot_)com

This is what this currently will do if customer(_at_)hotmail(_dot_)com is in the
$FRIENDS file.
I would also like this to match entire domains that  are legit, like
@customer.com

Is it possible to use both formats from the same $FRIENDS file?

Jason

----------------------------------
Jason Crowe
jcrowe(_at_)midwestglove(_dot_)com
Project Design Coordinator
MidWest Quality Gloves
----------------------------------


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail