procmail
[Top] [All Lists]

Re: Delete all the Received: headers

1997-08-07 22:17:00
        Author:         Mitsuru Furukawa <furu(_at_)009(_dot_)com>
        Original-Date:  Fri, 08 Aug 1997 13:38:48 +0900
        Message-ID:     
<199708080440(_dot_)NAA22637(_at_)mail(_dot_)ask(_dot_)or(_dot_)jp>

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.

'man formail':

     -I headerfield
          Same as -i, except that any existing similar fields are
          simply  removed.   If  headerfield  consists  only of a
          field-name, it effectively deletes the field.


:0fh
| formail -I"Received:" \
          -I"X-Received: Deleted all the Received headers"

:0
! you(_at_)elsewhere(_dot_)com
        
Untested....
TjL     


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