Philip, Thanks for the suggestion...the log below shows a systax error on the
FROM=`formail -rt -cTo:` line, though. The mail gets delivered, but this time it
is from ME again rather than the real originator (better than From: formail -rt
-cTo I guess).
What could be wrong, now?
THANKS!!!
***the actual, final message header*****
From awillis(_at_)shell3(_dot_)ba(_dot_)best(_dot_)com Thu Apr 17 08:24:37 1997
From: awillis(_at_)shell3(_dot_)ba(_dot_)best(_dot_)com
Date: Thu, 17 Apr 1997 08:19:13 -0700 (PDT)
Old-From: Richard Cowdrey <bdownes(_at_)best(_dot_)com>
Old-To: awillis(_at_)shell3(_dot_)ba(_dot_)best(_dot_)com
Subject: blah blah blah
To: walkman(_at_)shell4(_dot_)ba(_dot_)best(_dot_)com
test
***recipe******
FROM=`formail -rt -cTo:`
:0
*^TOalex
| formail -i"To:alex_willis(_at_)hphc(_dot_)org" \
-i"From: $FROM" | $SENDMAIL -oi -t
:0
*^TOawillis
| formail -i"To:walkman(_at_)shell4(_dot_)ba(_dot_)best(_dot_)com" \
-i"From: $FROM" | $SENDMAIL -oi -t
***LOG FILE of mail sent from bdownes(_at_)best to
walkman(_at_)bostonbands(_dot_)com********
procmail: Assigning "INCLUDERC=.procmail/rc.for"
procmail: Executing "formail,-rt,-cTo:"
Usage: formail [-bczfrktqY] [-D nnn idcache] [-p prefix] [-l folder]
[-xXaAiIuU field] [-R ofield nfield]
Or: formail [+nnn] [-nnn] [-bczfrktnedqBY] [-D nnn idcache] [-p prefix]
[-m nnn] [-l folder] [-xXaAiIuU field] [-R ofield nfield]
-s [prg [arg ...]]
procmail: Assigning "FROM="
procmail: No match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparent
ly(-Resent)?)-To):(.*[^a-zA-Z])?)alex"
procmail: Match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(
-Resent)?)-To):(.*[^a-zA-Z])?)awillis"
procmail: Assigning "LASTFOLDER= formail
-i"To:walkman(_at_)shell4(_dot_)ba(_dot_)best(_dot_)com" \
-i"From: $FROM" | $SENDMAIL -oi -t "
From bdownes(_at_)shell2(_dot_)ba(_dot_)best(_dot_)com Thu Apr 17 08:22:36
1997
Subject: blah blah blah
Folder: formail -i"To:walkman(_at_)shell4(_dot_)ba(_dot_)best(_dot_)com" \
-i"From: $FROM" 643
procmail: Notified comsat: "awillis@: formail
-i"To:walkman(_at_)shell4(_dot_)ba(_dot_)best(_dot_)com"