procmail
[Top] [All Lists]

Re: Message body, assign to a variable everything except lines starting with "content-" or "--"

2009-11-05 13:48:00
On Fri, 6 Nov 2009, reti(_at_)igrin(_dot_)co(_dot_)nz wrote:
Thanks Everyone.
I tried this Charles and ended up egrep the whole email, header and body,
and the inverse/negation flag -v didn't seem to have effect either.

My bad. I always get the meaning of capital 'B' and small 'b' reversed on recipes. To achieve the desired result, only parsing the mesage body, use the 'b' (lower case') flag on the recipe.

:0b
MIME=|egrep -v '^(--|Content-)'

- Charles
____________________________________________________________
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