procmail
[Top] [All Lists]

Re: Sendmail reading from address

1997-09-12 15:54:47
Excerpts from mail: (12-Sep-97) Sendmail reading from address by Aaron 
Dougherty (Sim Master)
The problem with this, is that the -t tag reads To, Cc, Bcc, etc, for the
recipient of the auto responce. I would like to bounce messages to faq,
but if I do that, I end up getting the mail instead the the appropriate
recipient. Any suggestions?

No problem. Just change your recipe to this:

MY_ADDR = "swsim(_at_)swsim(_dot_)com"

:0
* ^TOfaq
{
    :0 fwh
    * $ ^Resent-From:(.*[^-((_dot_)%(_at_)a-zA-Z0-9])?$\MY_ADDR
    | formail -I Resent-From: -I Resent-To: -I Resent-Date: \
              -I Resent-Sender: -I Resent-Message-Id:

    :0
    | (formail -rA"X-Loop: swsim(_at_)swsim(_dot_)com" ; \
       cat $HOME/www/faq.html; \
       echo ""; \
       cat $HOME/.signature \
      ) | $SENDMAIL -oi -t
}

Note: I changed "sendmail" to $SENDMAIL which is slightly more correctly.

You might want to add some MIME headers to your reply e-mail....

May the Force be with you,
Ed

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