procmail
[Top] [All Lists]

Re: Forward mail with From in subject field

1997-02-20 02:26:53
On Thu, 20 Feb 1997 10:01:46 +0100 (MET), Jarl Groneng <gjarl(_at_)sn(_dot_)no>
wrote:
FROM=`formail -rtzxTo:`

:0
* Some condition you want to match before doing this, perhaps? 
| formail -I"Subject: $FROM" | sendmail 
address(_at_)to(_dot_)forward(_dot_)to
Thank you very much for the tips, it works great.....but you mention the 
"c" flag, were do I put that? The mail goes tru to the forward 
mail-adress, but I don`t get the mail in my inbox. Have you any tips for 
that??

<rtfm>RTFM.</rtfm>

:0c
* Some condition ...
| formail -I"Subject: $FROM" | sendmail address(_at_)to(_dot_)forward(_dot_)to

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

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