Hmmm, this doens't seem to be working. It looks like it is just putting in
a bunch of empty headers. When I tested it, the mail still was sent to me.
how would I get your recipe to send the responce to the address in the
From: field?
-Aaron Dougherty
Sim Master
Star Wars Simulation
mailto:webmaster(_at_)swsim(_dot_)com
http://www.swsim.com
On Fri, 12 Sep 1997, Edward J. Sabol wrote:
<Pine(_dot_)LNX(_dot_)3(_dot_)96(_dot_)970912120740(_dot_)22100A-100000(_at_)mercury(_dot_)colossus(_dot_)net>
(swsim(_at_)swsim(_dot_)com)
Subject: Re: Sendmail reading from address
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