On Tue, 22 Apr 2003 the voices made Andrew Edelstein write:
AE> On Tue, Apr 22, 2003 at 02:30:03PM +0200, Steffen Bisgaard wrote:
AE> > | (echo "From: autoresponder(_at_)mydomain(_dot_)com" ; \
AE> > echo "Subject: Thanks for your inquiry!" ; \
AE> > formail -r -I"Precedence: junk" \
AE> > -A"X-Loop: autoresponder(_at_)mydomain(_dot_)com" ; \
AE> > cat autoreply.txt) | $SENDMAIL -t
AE>
AE> Someone else already answered your question about what was going wrong.
AE> I'd just like to point out that an action of "echo header; echo header,
AE> formail header header" is unnecessary. The "From:" and "Subject:" headers
can
AE> just as easily be set with formail as the "Precedence" and "X-Loop:"
headers.
AE> This potentially saves you system calls as well. (The shell is invoking 3
AE> binaries instead of 5.) Setting "From:" is probably unnecessary as well.
Or he could get a shorter/cleaner looking/easier to edit .procmailrc, as well
as fewer system calls, by putting the whole message in autoreply.txt:
| $SENDMAIL -t < autoreply.txt
--
/\___/\ /\___/\
\_@ @_/ \_@ @_/
+--oOO-(_)-OOo------------------------------------------oOO-(_)-OOo--+
| Per scientiam ad libertatem! // Through knowledge towards freedom! |
+---ôôô---ôôô--------------------------------------------ôôô---ôôô---+
\O/ \O/ (c)1998-2003 tony(_at_)svanstrom(_dot_)com \O/ \O/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail