Re: testing for empty text/plain

2006-08-07 Thread Theo Van Dinter
On Mon, Aug 07, 2006 at 09:11:14AM -0400, Eric A. Hall wrote:
> What's the most efficient way to grab the text/plain part?

Check out the other code/plugins.  Getting to a specific message part
is pretty easy.

-- 
Randomly Generated Tagline:
Sarchasm: The gulf between the author of sarcastic wit, and the recipient
 who doesn't get it.
 - Washington Post


pgpjQVMr52Don.pgp
Description: PGP signature


Re: testing for empty text/plain

2006-08-07 Thread Eric A. Hall

On 8/7/2006 12:25 AM, Theo Van Dinter wrote:
> On Mon, Aug 07, 2006 at 12:07:58AM -0400, Eric A. Hall wrote:
>> Anybody written a rule that tests for empty text/plain, preferably only
>> when a non-empty text/html or some other media-type is provided?
> 
> Sounds very similar to MPART_ALT_DIFF.

That might be useful as a pre-test filter, such as looking to see if
MPART_ALT_DIFF fired before doing anything else. From there I can grep to
see if text/plain has any printable characters.

What's the most efficient way to grab the text/plain part?

-- 
Eric A. Hallhttp://www.ehsco.com/
Internet Core Protocols  http://www.oreilly.com/catalog/coreprot/


Re: testing for empty text/plain

2006-08-06 Thread Theo Van Dinter
On Mon, Aug 07, 2006 at 12:07:58AM -0400, Eric A. Hall wrote:
> Anybody written a rule that tests for empty text/plain, preferably only
> when a non-empty text/html or some other media-type is provided?

Sounds very similar to MPART_ALT_DIFF.

-- 
Randomly Generated Tagline:
"Deja Fu: The feeling that somehow, somewhere, you've been kicked in the
  head like this before."- Unknown


pgpVbvsew0Bxj.pgp
Description: PGP signature