procmail
[Top] [All Lists]

Re: How to use procmail to forward mail under conditions

1999-05-20 11:47:18
I would like to perform the following algorithm:

if (To == "email1(_at_)host(_dot_)com" )
then {
 add "Misc" field and write orginal "To" to it;/*optional*/
 write "email2(_at_)host(_dot_)com" in "To" ;
 forward message to "email2(_at_)host(_dot_)com" (without saving) ;
}


ok, let's see

:0
* ^TO(email1(_at_)host(_dot_)com)
{
  :0 fhw
  * ^TO\/.*
  | $FORMAIL -A "Misc: $MATCH"
  :0:
  | $SENDMAIL email2(_at_)host(_dot_)com
}

have fun

Ralf

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