procmail
[Top] [All Lists]

Re: yet another newbie question

2002-02-18 13:16:45
At 10:44 2002-02-18 -0500, Peter Petto did say:

I want to send copies of all messages whose subjects begin with the word "RELAY" to two other email addresses (on other machines): me(_at_)cellphone(_dot_)com and me(_at_)palmtop(_dot_)com

:0
*! ^FROM_DAEMON
* ^Subject:[    ]*RELAY
! me(_at_)cellphone(_dot_)com me(_at_)palmtop(_dot_)com


This doesn't require the "RELAY" part to be in uppercase though - for that, you'd add a 'D' to the flags line, and expect that the Subject header would actuially be in the standard case as shown.

Note that this also does not take into account possible mail loop generation (one of the forwarded addresses might send the message back).


---
 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>