procmail
[Top] [All Lists]

Re: How to crate a recipe for the following

2001-05-31 10:01:52
At 13:26 2001-05-31 +0200, Andreas Müller wrote:
I want that the to: and from: header are scanned. If to: matches a certain
domain AND from: matches another domain, i want the mail forwarded to an
other user. How could I accomplish this?

:0
* ^To:[         ]*someaddress(_at_)domain\(_dot_)tld
* ^From:[       ]*someotheraddress(_at_)domain\(_dot_)tld
! forwardeduser(_at_)domain(_dot_)tld


---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

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

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