procmail
[Top] [All Lists]

Delete all the Received: headers

1997-08-07 22:05:00
Please help me to construct a recipe which
deletes all the Received: header lines
and add "X-Received: Deleted all the Received headers"
before forwarding.

I began by something like this
  :0fH
   | sed -e '/^Received:.*$//g'
which seems to delete as almost expected but I'm stuck from there...

BTW, I have a feeling that the flag H has more significance than
just "Egrep the header". 
That is because if I use h flag, header and body are fed as body
and if I use H flag, header and body are fed as header in mailbox.
Am I wrong?

TIA.
_/_/_/      Mitsuru FURUKAWA      _/_/_/
_/_/_/        Tokyo, Japan        _/_/_/
_/_/_/     mailto:furu(_at_)009(_dot_)com    _/_/_/
_/_/_/  http://www.009.com/furu/  _/_/_/

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