procmail
[Top] [All Lists]

Re: matching empty text/plain

2003-06-16 16:18:33
On Mon, 16 Jun 2003, Paul Chvostek wrote:

... has anyone written a recipe to match empty text/plain body blocks,
or ones that contain nothing but whitespace?

I've updated <http://www.well.com/user/barts/email/mimepart.txt> to deal
correctly with empty body parts.  Grab it and then do something like:

INCLUDERC=mimepart.txt

:0
* BODY_PART ?? ()\/[^   ]
* MATCH ?? .
{
 # Here body has at least one non-whitespace character
}
:0E
{
 # Here body is empty
}


As usual the bracketed whitespace above is one space and one tab.


_______________________________________________
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>