Evening,
Am 2009-09-04 19:42:07, schrieb Thomas Göbel:
* <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
"H" ist the default and not nessesary
* ^FROM:(_dot_)john(_at_)example(_dot_)com
* ^Subject:.messages
Maybe you should use .*
| msmtp -a account "special(_at_)example(_dot_)com" < /var/log/messages
Hmmm, you are piping the whole message to msmtp?
I would do simpel:
:0
* ^FROM:(_dot_)*john(_at_)example\(_dot_)com
* ^Subject:.*messages
{
DUMY_EXEC=`msmtp -a account "special(_at_)example(_dot_)com" <
/var/log/messages`
:0
.REQUEST/
}
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/> Michelle Konzack
<http://www.can4linux.org/> Apt. 917
<http://www.flexray4linux.org/> 50, rue de Soultz
Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de 67100
Strabourg/France
IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947
ICQ #328449886 Tel. FR: +33 6 61925193
____________________________________________________________
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