procmail
[Top] [All Lists]

Pserving FROM When forwarding

1997-04-28 11:54:00
The recipe below successfully preserves the FROM: field when
forwarding, but does not preserve the FROM (no colon) field...so the
process only works  for those destination systems that use the FROM:
field rather than the FROM field.

Can any one tell me what my recipe should look like if it were to change
(or simply remove) the FROM field?

attached: sample message header, rc.forward file;

****sample message header******
Message 1:
From awillis(_at_)shell3(_dot_)ba(_dot_)best(_dot_)com Mon Apr 28 08:26:08 1997
Date: Mon, 28 Apr 1997 08:20:57 -0700 (PDT)
Old-From: Richard Cowdrey <bdownes(_at_)best(_dot_)com>
Old-To: awillis(_at_)shell3(_dot_)ba(_dot_)best(_dot_)com
Subject: finally
To: walkman(_at_)shell4(_dot_)ba(_dot_)best(_dot_)com
From: bdownes(_at_)best(_dot_)com

****rc.forward*******
FROM=`formail -rtxTo:`
:0
*^TOawillis
| formail -i"To:alex_willis(_at_)hphc(_dot_)org" \
-i"From: $FROM" | $SENDMAIL -oi -t

:0
*^TOwalkman
| formail -i"To:walkman(_at_)shell4(_dot_)ba(_dot_)best(_dot_)com" \
-i"From: $FROM" | $SENDMAIL -oi -t