procmail
[Top] [All Lists]

Re: mail to fax

1998-01-27 00:58:05
Hallo Era and others,

TO=`formail -xTo:`
| ( formail -t -I"From: fax(_at_)hotel-germany(_dot_)com" \

You still need to add a ":0" after the TO= line. 

Uups, sorry I forgot that. Below are the lines with the actual log:

procmail: [24838] Tue Jan 27 02:26:37 1998
procmail: Match on "^X-Envelope-To:.<cti(_at_)hotel-germany(_dot_)com>"
procmail: Match on "< 50000"
procmail: Match on ! "^X-Loop: cti(_at_)hotel-germany(_dot_)com"
procmail: Executing "formail,-xFrom:"
procmail: Assigning "FROM= Michael Kater <kater(_at_)www-marketing(_dot_)com>"
procmail: Executing "formail,-xTo:"
procmail: Assigning "TO= cti(_at_)hotel-germany(_dot_)com"
procmail: Assigning "LASTFOLDER= ( formail -t -I"From: 
fax(_at_)hotel-germany(_dot_)com" \
    -I"To: michael(_dot_)kater(_at_)t-online(_dot_)de" -I"Bcc: 
kater(_at_)www-marketing(_dot_)com" \
    -I"X-Loop: cti(_at_)hotel-germany(_dot_)com" ; \
    echo "### original message from:$FROM to:$TO ###" ) \ "
From kater(_at_)www-marketing(_dot_)com  Tue Jan 27 02:26:37 1998
 Subject: test19
  Folder:  ( formail -t -I"From: fax(_at_)hotel-germany(_dot_)com" \     -I"To: 
mi          930
procmail: Notified comsat: "kater@: ( formail -t -I"From: 
fax(_at_)hotel-germany(_dot_)com" \
    -I"To: michael(_dot_)kater(_at_)t-online(_dot_)de" -I"Bcc: 
kater(_at_)www-marketing(_dot_)com" \
    -I"X-Loop: cti(_at_)hotel-germany(_dot_)com" ; \
    echo "### original message from:$FROM to:$TO ###" ) \ "
procmail: Executing " ( formail -t -I"From: fax(_at_)hotel-germany(_dot_)com" \
    -I"To: michael(_dot_)kater(_at_)t-online(_dot_)de" -I"Bcc: 
kater(_at_)www-marketing(_dot_)com" \
    -I"X-Loop: cti(_at_)hotel-germany(_dot_)com" ; \
    echo "### original message from:$FROM to:$TO ###" ) \ "
Badly placed ()'s.

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