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/07/28 13:19:21 UTC
Re: add a new rule type: single-line body?
Loren Wilton writes:
> > 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:
>
> It might be beneficial to convert the newlines to spaces, but it might also
> be beneficial to leave them there so that they can be explicitly checked for
> as a ratware pattern. Isn't there a regex /something that treats newlines
> as spaces? If so that might be the better way to do it, since the rule
> writer can have it either way.
That's what rawbody does now, with the /s modifier.
> Would would DEFINITELY be useful would be to stop breaking body on paragraph
> boundaries and to put it all into one string. Or as you mention, "all" up
> to some convenient arbitrary limit. I don't know how many full-body hacks
> I've had to write to get around the problems with body breaking on paragraph
> bodies.
Uh, exactly what I was proposing...
--j.