On Mon, Jun 16, 2003 at 02:57:38PM -0400, Paul Chvostek wrote:
Before I spend an hour fighting with it, has anyone written a recipe
to match empty text/plain body blocks, or ones that contain nothing but
whitespace?
Hi, Paul,
I've been away on business for a couple of weeks. I almost blew
away the sudden bloat from this list, but decided to see how far
I get looking through old stuff quickly.
I also see you and Bart worked out some stuff in regard to this
question. However, I thought I'd go ahead and post my one-liner
solution anyway. "$WS" is a space and a tab. This line
is one of many in my last-ditch-fallback body-grep recipe.
It doesn't get run often.
* $ 8^0 ^(Content-T[^$WS]+:.*$([$WS].*$|$)*)+--
This line is also in there, and proves useful:
* 15^1 ^Content-Type:(.*\<)?text/.*(^.*)?\
^Content-Transfer-Encoding:(.*\<)?base64
In another post, you wrote:
I don't think I've ever seen a Content-Type: multipart header with a
single part that was not spam. I'm pretty sure that most MUAs, if
configured to send HTML-only email, won't bother making it multipart.
I'm willing to be corrected on that....
I'm afraid to say I've seen it in legit mail. :-(
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail