procmail
[Top] [All Lists]

auto-responder that quotes message headers & body

2000-10-10 12:34:28
I've implemented an auto-reply recipe, but want to quote the original
message (including headers) below the echo lines, and the message
should be quoted with ">".  For example,

  From: postmaster(_at_)corp(_dot_)com
  Subject: Re: hello

  Returned mail: User not local;
  please try <melissa(_at_)virtual(_dot_)com>

  > sender's message headers and body quoted here

------------------------------------------------------

:0:
* !^FROM_DAEMON
* !^X-Loop: lewst(_at_)corp(_dot_)com
* ^TOmelissa\(_at_)corp(_dot_)com
{
  :0 fh
    | formail -r -I"Precedence: junk" \
                 -A"X-Loop: lewst(_at_)corp(_dot_)com" \
                 -I"From: postmaster(_at_)corp(_dot_)com" ;\
      echo "Returned mail: User not local;" ; \
      echo "please try <melissa(_at_)virtual(_dot_)com>" ; \
      echo ; \

  :0
  | $SENDMAIL -oi -t
}

------------------------------------------------------

The above recipe includes the message body below the echo lines, but
doesn't include the message headers and doesn't quote them with ">".
What do I need to change?


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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