On Wed, 16 Aug 2000, Mike O. wrote:
I'm a little confused with syntax. I want to dump mail from a specific
sender and would like to do the same for email coming from a specific domain
(two cases really). I propose the following:
Case 1:
:0
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: myaddress(_at_)mydomain(_dot_)net
* ^From(_dot_)*jhodgins(_at_)moneymailer(_dot_)com
/dev/null
Case 2:
:0
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: myaddress(_at_)mydomain(_dot_)net
* ^From(_dot_)*(_at_)moneymailer(_dot_)com
/dev/null
Would Case 1 dump email from this specific sender?
Would Case 2 dump email from everyone(_at_)moneymailer(_dot_)com?
Both your cases work for what you want to do. The first dumps a
specific sender, the second dumps everyone from that domain.
Just write
:0
* ^From:(_dot_)*(_at_)moneymailer\(_dot_)com
/dev/null
to catch both.
What are the differences between:
* ^From(_dot_)*(_at_)moneymailer(_dot_)com
* ^From:(_dot_)*(_at_)moneymailer(_dot_)com
------- and -------
* ^From*(_at_)moneymailer(_dot_)com
From how I understand it, there are two From headers.
The 'From ' (with a space after it) and the 'From:' (with the
colon). So * ^From.* would catch both, while * ^From:.* would
just catch the 'From:' header.
More info on the 'From ' header at
http://www.ling.helsinki.fi/users/reriksso/procmail/mini-faq.html#from--
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail