procmail
[Top] [All Lists]

Re: Forward mail with From in subject field

1997-02-20 15:46:08
Era Eriksson suggested to Jarl Groneng,

| Try this:
| 
|     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

Rather than -I, I'd recommend -i, which renames the existing Subject: header
to "Old-Subject:" instead of deleting it as -I does.  That way the forwardee
can find out what the original subject was.

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