You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Eric A. Hall" <eh...@ehsco.com> on 2006/08/07 06:07:58 UTC
testing for empty text/plain
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?
Thanks
--
Eric A. Hall http://www.ehsco.com/
Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: testing for empty text/plain
Posted by Theo Van Dinter <fe...@apache.org>.
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
Re: testing for empty text/plain
Posted by "Eric A. Hall" <eh...@ehsco.com>.
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. Hall http://www.ehsco.com/
Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: testing for empty text/plain
Posted by Theo Van Dinter <fe...@apache.org>.
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