procmail
[Top] [All Lists]

Re: sendmail

2001-02-22 10:50:03

I want send a new mail from procmail in some condition. Is it 
possible?

Sure.

:0
* ^Subject: send_new_mail
! someone(_at_)somewhere(_dot_)com

change the condition to whatever you would like -- just make sure that 
the address you forward to doesn't mail back (i.e. vacation message) to 
the same account :-)

We call them mail loops, and they aren't fun.

To avoid that possibility, you could do something more safe like

:0
* ^Subject: send_new_mail
*!^X-newmailloop: yes
{

:0fhw
|formail -I"X-newmailloop: yes"

:0
! someone(_at_)somewhere(_dot_)com

}

But in general if you are specific enough about the conditions, you 
should be OK.... 

TjL


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