You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2007/08/07 12:20:22 UTC
Re: add a new rule type: single-line body?
Duncan Findlay writes:
> On Jul 27, 2007, at 7:08 AM, Justin Mason wrote:
>
> > Just wondering. would it be handy to have a new "body" type, the
> > same as
> > "body" but matched as a single string, with all newlines converted
> > to " "?
> > in other words, this text:
>
> [...]
>
> > ie, no newlines, all whitespace converted to " ". this would be
> > optimal
> > for matching with phrase rules. (To avoid exponential-runtime .*
> > problems, it'd chop the text after the first 8000 characters or so.)
>
> How is this different than rawbody /s rules?
rawbody doesn't interpret HTML or convert whitespace.
--j.