I've hardly started using procmail, and already have a probably
I want certain mails I get to be dealt with automatically, but at the
end of this process I want to send a mail to myself confirming the
My entry in .procmailrc is:
<MY_SCRIPT> deals with the mails the way I want; all this works perfectly well.
However, at the end of <MY_SCRIPT> I send a mail to myself:
echo "MY_MESSAGE" | eval "mail -s \"MY_SUBJECT\" uli"
This message never arrives.
If I start <MY_SCRIPT> without procmail, instead explicitly piping a
test mail into it:
echo <TEST_MAIL> | <MY_SCRIPT>
I do get my confirming mail; as soon as I start it from procmail, which
pipes exactly the same mail as the test mail into it, I don't get my
To make sure the code is executed I've added a
echo "before mail" > PROTOCOL
echo "after mail" > PROTOCOL
to <MY_SCRIPT>, surrounding the line that generates the confirming mail.
Both lines are written into PROTOCOL, i.e. the script gets executed
Obviously the problem is that
eval "mail -s \"MY_SUBJECT\" uli"
doesn't work when executed from within procmail.
But why? Here I'm totally at a loss. :-(
And what to do to solve this problem?
Thanks a lot for any insight!
Uli Zappe E-Mail:
(NeXTMail,Mime,ASCII) PGP on request
Lorscher Strasse 5 WWW: -
D-60489 Frankfurt Fon: +49 (69) 9784 0007
Germany Fax: +49 (69) 9784 0042
staff member of NEXTTOYOU - the German NEXTSTEP/OPENSTEP magazine