procmail
[Top] [All Lists]

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

2003-05-12 19:48:44
On Mon, May 12, 2003 at 07:16:59PM -0400, Tom Wolfe wrote:
#tomwolfe AUTOREPLY
:0 c
* !^FROM_DAEMON
* !^FROM_MAILER

Don't need both ^FROM_DAEMON and ^FROM_MAILER. The former includes the later.

* !^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"
From tom(_at_)sawback(_dot_)com  Sun May 11 18:45:25 2003

You're missing a backslash after "formail -rt", so it isn't continuing the
action to the next line.
Also missing one at the end of the "-I" line.

When I remove the line:
     -I"From: Autoresponder <tomwolfe(_at_)sawback(_dot_)com>"
Then there is no error and the reply works as expected, but I want these 
autoreplies to have ME as the sender, not the mail system.

See above. However if you're running this in your ~/.procmailrc instead of out
of /etc/procmailrc, it should have your username anyway (though the "real
name" part won't be "Autoresponder").

-- 
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