procmail
[Top] [All Lists]

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

2009-11-05 09:48:41
On Thu, 5 Nov 2009, reti(_at_)igrin(_dot_)co(_dot_)nz wrote:
My goal is to assign to a variable (MIME), everything in the body apart
from the MIME boundary delimiters and content definitions that are
consistently returned from one mail server only.

If you are wililng to live with the possibility of losing matching non-mime lines from the middle of the body and/or the separators between multiple mime parts, then you could use egrep:

:0B
MIME=| /path/to/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