* <njm(_at_)njm(_dot_)me(_dot_)uk> [10.09.2009 12:45]:
If there is no condition why do you need the :0, { and } ? As for the
shell code, why have you used an intermediate file rather than a pipe?
I came up with the following. NB: the sed(1) I have did not like your
syntax.
DUMMY=`echo "To: $TO" | cat - $HOME/.mailreply | msmtp -a gmx "$TO"`
The whole recipe looks like this:
TO=`formail -rtzxTo:`
:0HB
* ^content-type:.*multipart/(mixed|alternative)
* .*name=.*\.(ppt|xls|doc)
* ! ^X-Loop: mail(_at_)web(_dot_)www
{
:0
{
FOO=`sed -e "1a\To: $TO" $HOME/.mailreply > $HOME/.mail`
DUMMY=`msmtp -a gmx "$TO" < $HOME/.mail`
BAR=`rm $HOME/.mail`
}
:0
* ^TO.foo
maildir1/
:0
* ^TO.*bar
maildir2/
}
But your code looks much more simple! Added it to procmailrc.
Thank you,
Tom
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
pgpJLG2QpGctl.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