On 12.07.2007 20:02 CE(S)T, Loren Wilton wrote:
>> Hm, according to the manpage, this doesn't remove HTML tags and it's
>> matched line by line, so checking for a visually empty message isn't an
>> easy job here. I guess for such advanced tests like whether a message is
>> empty or not, I'll need to learn Perl and create my own function (or
>> plugin) for it. :(
>>
>> Or has anybody a quick measure agains empty mails with "Invoice #0000"
>> in the subject and only a PDF attached?
> 
> You want empty body other than the subject line?  I think there is an 
> EMPTY_BODY rule already, or something very similar to that.  Also I believe 
> rules that fire on various amounts of body text.

Okay, and what about an HTML part like this:

<html>
<head>
<some garbage here>
</head>
<body><p>&nbsp;</p></body>
</html>

I consider this empty, but ^$ does not. Any suggestions?

-- 
Yves Goergen "LonelyPixel" <[EMAIL PROTECTED]>
Visit my web laboratory at http://beta.unclassified.de

Reply via email to