procmail
[Top] [All Lists]

Re: executing a shell command

2009-09-04 13:43:03
* <davy(_at_)scu(_dot_)escambray(_dot_)com(_dot_)cu> [04.09.2009 18:17]:
So, if the message From is john(_at_)example(_dot_)com and subject is exactly
"messages" send me a reply with the file  /var/log/messages

I am using msmtp as smtp client, so maybe you have to change msmtp to
i.e. sendmail.

:0 H
* ^FROM:(_dot_)john(_at_)example(_dot_)com
* ^Subject:.messages
| msmtp -a account "special(_at_)example(_dot_)com" < /var/log/messages

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Attachment: pgpFWfzuIN15M.pgp
Description: PGP signature

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>