procmail
[Top] [All Lists]

Re: Forward mail

1997-07-05 01:51:00
On  5 Jul 97 at 10:52, era eriksson wrote:

 > But something always not works very well.
 > 
 > 1) the "To" address in the incoming message is also the "To" address 
 >    in the outgoing message. I would like to change that. How can
 >    I change the "to" address in the outgoing message?.

Add more switches to the formail call. -I"To: someaddress" will
replace the address with someaddress; merely saying -ITo: will strip
the To: field. 


Yes, thats what I've done

FROM=`formail -rtzxTo:`
:0
* ^TO.*leebow
* ! ^Subject:
* B ?? < 5
| ( formail -I"To: rambox(_at_)tin(_dot_)it" -I"Subject: subscribe" ; 
echo "SUBSCRIBE $FROM" ) \
| $SENDMAIL $SENDMAILFLAGS rambox(_at_)tin(_dot_)it

but gives an error in the .procmail log: badly placed )'s
(please note that the echo "....")\  has been placed on the same line
      as I (formail etc)

 > 2) there is to much space between the beginning of the message body
 >    and the text

Where exactly?

  Header: something
  Header-X: something

  body

Do you get empty lines before "body" or what is the problem? 


yes many empty lines in the message body before the text begins.
 
 > 3) I unlocked the code because the program couldn't find the lock 
 >     file. How do I create a lock file (am I too newbie?)

Sorry, my mistake, this recipe should not have a lock file. 


the newbie improves the master :-)

Thanks again,
Raymond Willemsen
mailto:rambox(_at_)tin(_dot_)it 



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