procmail
[Top] [All Lists]

Removing a single "Received:" header

2001-09-19 20:50:42
I know this might sound a little strange...

But I would like to remove a single "Received:" header that contains 2 strings. I don't want to toss out the other "Received:" headers, only the one the matches the 2 strings. Renaming the matching "Received:" header to "old-Received:" would be even better. And then after all of that is done, I want the rest of my recipes to continue processing the message.

The current recipe that I have tosses away all but the 1 first "Received:" header:

  :0 fh
  * ^Received:.*by hotmail.com
  * ^Received:.*with ESMTP id MHotMail
  | formail -c -UReceived

...but this takes away more information that I want to loose. What would be the best way to go about this?

Thank you

-Brian Young

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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