procmail
[Top] [All Lists]

Re: Nothing seems to happen

2003-04-22 18:27:08
On Tue, Apr 22, 2003 at 02:30:03PM +0200, Steffen Bisgaard wrote:
| (echo "From: autoresponder(_at_)mydomain(_dot_)com" ; \
echo "Subject: Thanks for your inquiry!" ; \
formail -r -I"Precedence: junk" \
-A"X-Loop: autoresponder(_at_)mydomain(_dot_)com" ; \
cat autoreply.txt) | $SENDMAIL -t

Someone else already answered your question about what was going wrong.
I'd just like to point out that an action of "echo header; echo header,
formail header header" is unnecessary. The "From:" and "Subject:" headers can
just as easily be set with formail as the "Precedence" and "X-Loop:" headers.
This potentially saves you system calls as well. (The shell is invoking 3
binaries instead of 5.) Setting "From:" is probably unnecessary as well.

|(formail -r -I"From: autoresponder(_at_)mydomain(_dot_)com" -I"Subject: Thanks 
for \
your inquiry!" -I"Precedence: junk" -A"X-Loop: 
autoresponder(_at_)mydomain(_dot_)com"; \
cat autoreply.txt) | sendmail -t

-- 
Andrew Edelstein        -       http://andrew.pure-chaos.com/resume.txt

Please do not reply directly to me, or Cc: me on a reply to a list message.
I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>