procmail
[Top] [All Lists]

Re: Fwd. Subject and From

1997-04-28 23:26:00
At 07:27 PM 4/28/97 -0700, you wrote:
Any help on the following would be greatly appreciated.

How can I forward just the Subject and who the email is From
in a new message to a different address?

Thanks.

Something like this should work (I hope :^>):

        :0
        * ^Subject: *\/.*
        {
                SUBJECT=$MATCH
        }
        :0
        * ^From: *\/.*
        {
                FROM=$MATCH
        }
        :0:
        | (formail -r -i"Subject: Info from my other account" \
           -i"To: elsewhere(_at_)foo(_dot_)com"; echo "From: $FROM"; \
           echo "Subject: $SUBJECT") | sendmail -oi -t


Lates!
---------------------------------------------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>                          
mailto:bodysurf(_at_)pobox(_dot_)com
Finger bodysurf(_at_)pobox(_dot_)com for my PGP public key (Bits 1024/KeyID 
09DA5C49).
PGP Key FPrint (09/03/94): 4C 97 F1 FA 70 55 68 91  49 D1 AD F2 DD 63 0C 15
---------------------> Please PGP encrypt your email <---------------------

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