procmail
[Top] [All Lists]

Re: Problems changing "From:" in header of autoreply

2003-05-12 17:16:15
On Mon, May 12, 2003 at 07:16:59PM -0400, Tom Wolfe wrote:

#tomwolfe AUTOREPLY
:0 c
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: tomwolfe_reply
* ^To: tomwolfe@
| (formail -rt
     -A"Precedence: normal (autoreply)" \
     -A"X-Loop: tomwolfe_reply" \
     -I"From: Autoresponder <tomwolfe(_at_)sawback(_dot_)com>"
     cat ${REPLIES}/tomwolfe.txt) | $SENDMAIL -t

I get the following entry  in my log file:

procmail: Skipped "-A"Precedence: normal (autoreply)" \"
procmail: Skipped "-A"X-Loop: tomwolfe_reply" \ "
procmail: Skipped "-I"From: Autoresponder <tomwolfe(_at_)sawback(_dot_)com>""
procmail: Skipped "${REPLIES}/tomwolfe.txt) | $SENDMAIL -t"

You need either a continuation slash or to put the first -A
instruction on the same line with the -rt.


 | (formail -rt \
      -A"Precedence: normal (autoreply)" \
      -A"X-Loop: tomwolfe_reply" \


Also, I left in your conditions to remind me to mention that you
might want to considre putting the last condition first.  It's the
most likely one to evaluate falsely, so you can save a bit of
work for procmail by skipping that recipe early for mail not
addressed to that alias.

-- 
dman

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