procmail
[Top] [All Lists]

Re: double header

1997-04-17 13:59:00
SHILUV Irena Rogatsky 5271 <irena(_dot_)rogatsky(_at_)telrad(_dot_)co(_dot_)il> 
writes:
I would like to substitute message body with new one
and *re-send* it to somebody. I know it is quite basic but I have some
problems with this.

The recipe I have:

      :0 hw
      | (formail -I"From: $MYADDR" \
                  -I"Subject: My subject"\
                  -I"To: $SMBD";\
         echo "My new body";) | $SENDMAIL -oi $SMBD

All seems to be right. But in my pine I gets message with a two parts of
header. Pine does not see new Subject, From, To lines.
This is what I get in pine:

Date: Thu, 17 Apr 1997 19:04:18 +0300
From: SHILUV Irena Rogatsky 3124 
<romania(_at_)cpm(_dot_)elex(_dot_)co(_dot_)il>

From irena  Thu Apr 17 19:04:12 1997
Received: from tlhuph42.elex.co.il by cpm.elex.co.il with ESMTP
       (1.37.109.16/16.2) id AA137743048; Thu, 17 Apr 1997 19:04:08 +0300
...


The "From " non-header is causing the problem.  Try adding
        -I"From "
to the formail command line to remove it.

Philip Guenther

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