procmail
[Top] [All Lists]

Removing line-wrapped header

2004-09-08 04:06:51
How can I remove a certain long line-wrapped header?
The header name is not unique, but its value is.

:0 fhw
* ^Header:.*somestring
| grep -vi '^Header:.*somestring'

would be perfect but doesn't work with wrapped headers. Unfortunately
formail doesn't have a full header remove option:

:0
* ^\/Header:.*somestring
| formail -I"$MATCH"

is no good (assuming the white space wouldn't break the pattern matching
in the first place). Even if I knew how to do it in sed, it wouldn't be
case-insensitive (unless I assumed gnu sed).

Has anyone found a solution for this already?

Thanks much,

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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