This might do it for Volker.
It looks for a Kuhlmann: header. It's obvious where to change that.
If that header has a continuation line AND it matches:
", but dump this crap"
It'll throw the whole thing away. Otherwise everything else is passed
through intact (no unwrapping, reformatting, etc.).
Caveats: If it doesn't have a continuation line, it won't even check
for a match. If it has more than one continuation line and the match
is beyond the first continuation line (2nd total in the header), it
won't match. If that's a problem, it's at least a start.
I tested on a msg with these two headers:
Kuhlmann: line 1
continuation line 2
Kuhlmann: line 1
continuation line 2, but dump this crap
and it dutifully deleted the last two lines with no other changes.
:0 fhw
|perl -ne 'if(/^Kuhlmann:/){$buf=$_;$line=<>;if($line!~/^\S+:/){chomp$buf;' \
-e '$tmp=$buf.$line;next if $tmp=~/, but dump this crap/;' \
-e 'print$buf,"\n",$line;next;}print$buf,$line;}print;'
Hope that helps,
Don
--
Email address in From: header is valid * but only for a couple of days *
This is my reluctant response to spammers' unrelenting address harvesting
____________________________________________________________
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