1 Dec 1995 01:43
Re: AOK but need to include original message...
Soren Dayton <csdayton <at> midway.uchicago.edu>
1995-12-01 00:43:43 GMT
1995-12-01 00:43:43 GMT
Eric wants to quote the letter.
> I would like, as an option, the ability to include the original
> sender's message (if any) *below* the outgoing autobot.txt form
> response when autoreplying.
Use sed and the -k option to formail
> :0hc
> * !^FROM_DAEMON
> * !^X-Loop: eric <at> garlic.com
> * ^TOautobot <at> hilding.com
> | (formail -rk -A"Precedence: junk" \
^ I added that.
> -I"From: Autobot Test <autobot <at> hilding.com>" \
> -I"Subject: Test of an Autobot" \
> -A"X-Loop: eric <at> garlic.com" ) | \
sed -e '/^$/!b' -e x -e '/./b' -e x -e 'r filename' | \
$SENDMAIL -oi -t
I am not sure if I mean this as a joke.
Soren
# ------------
# This recipe returns the sender's original message *below* the
# autobot form letter message (autobot.txt), appends the sender's
# e-mail address to the (autobot.log) file, and finally files a
# copy of the sender's original message in folder (Aautobot.IN).
# Special thanks to Stephen, David, Hal, Soren & others for help.
:0 hc
* !^FROM_DAEMON
* !^X-Loop: eric <at> garlic.com
* ^TOautobot <at> hilding.com
{
:0 fh
| formail -r -A"Precedence: junk" \
-I"From: Autobot Test <autobot <at> hilding.com>" \
-I"Subject: Test of an Autobot" \
-A"X-Loop: eric <at> garlic.com" ; cat $HOME/procmail/autobot.txt
:0
| $SENDMAIL -oi -t
}
:0 c:
* ^TOautobot <at> hilding.com
| formail -rtzxTo: >> $HOME/procmail/autobot.log
RSS Feed