Re: Help with body rule

2014-05-28 Thread Alex
Hi, > I'm used to a buffer being a __CHUNK (using your rule example) of > > text, or the first 4k or so, not up to the first two line breaks, so I > > was confused. > > You are confused, indeed. And confusing body for rawbody rules. So much > for the pun. ;) > > The terms I were using are directl

Re: Help with body rule

2014-05-28 Thread Karsten Bräckelmann
On Wed, 2014-05-28 at 23:36 -0400, Alex wrote: > > > > A body rule with beginning and end anchors /^ $/ as you posted matches > > > > complete paragraphs. Not the full body. > > > > > > I don't think I realized multiple buffers weren't considered > > > simultaneously. > > > > I don't get "buffer",

Re: Help with body rule

2014-05-28 Thread Alex
Hi, > > A body rule with beginning and end anchors /^ $/ as you posted matches > > > complete paragraphs. Not the full body. > > > > I don't think I realized multiple buffers weren't considered > > simultaneously. > > I don't get "buffer", neither "simultaneously" in this context. > I'm used to a

Re: Help with body rule

2014-05-28 Thread Karsten Bräckelmann
On Wed, 2014-05-28 at 22:05 -0400, Alex wrote: > This is the quoted-printable text/html content: > > > > > #00"> > Hi! href=3D"http://example.ru/rnj/trouble.php";>http://example.ru/rnj/trouble.php > > where example.ru is the real domain (which is now a dead link anyway). > The rendered v

Re: Help with body rule

2014-05-28 Thread Karsten Bräckelmann
On Wed, 2014-05-28 at 21:55 -0400, Alex wrote: > On Wed, May 28, 2014 at 5:36 PM, Karsten Bräckelmann wrote: > > Oh, come on, Alex. We've had that topic just recently in your "Help with > > short bodys with URLs" thread. Which wasn't the first time either... > > I know, I know. I actually started

Re: Help with body rule

2014-05-28 Thread Alex
Hi, > > ifplugin Mail::SpamAssassin::Plugin::BodyEval > >if can(Mail::SpamAssassin::Plugin::BodyEval::has_check_body_length) > > > body __BODY_LENGTH_100 eval:check_body_length('100') > > This indeed may be a neat substitution to the __RB_LE_nnn and __CHUNK > rules discussed, to match short m

Re: Help with body rule

2014-05-28 Thread Alex
Hi, On Wed, May 28, 2014 at 5:36 PM, Karsten Bräckelmann wrote: > > On Wed, 2014-05-28 at 14:16 -0400, Alex wrote: > > I'm trying to write a body rule that will catch an email exactly > > containing any number of characters up to 15, followed by a URI, > > followed by any number of characters, up

Re: Help with body rule

2014-05-28 Thread Karsten Bräckelmann
On Thu, 2014-05-29 at 00:12 +0200, Axb wrote: > On 05/28/2014 11:36 PM, Karsten Bräckelmann wrote: > > Another approach would be to actually ensure there is only a single > > chunk. And finally, meta them together. > > > >rawbody __CHUNK /^./ > >tflags __CHUNK multiple > or a "modern"

Re: Help with body rule

2014-05-28 Thread Axb
On 05/28/2014 11:36 PM, Karsten Bräckelmann wrote: Another approach would be to actually ensure there is only a single chunk. And finally, meta them together. rawbody __CHUNK /^./ tflags __CHUNK multiple metaSHORT_BODY_URI __SHORT_BODY_URI && (__CHUNK == 1) That all said,

Re: Help with body rule

2014-05-28 Thread Karsten Bräckelmann
On Wed, 2014-05-28 at 14:16 -0400, Alex wrote: > I'm trying to write a body rule that will catch an email exactly > containing any number of characters up to 15, followed by a URI, > followed by any number of characters, up to 15. My attempt has failed > miserably, and hoped someone could help. >

RE: Help with body rule

2014-05-28 Thread John Hardin
On Wed, 28 May 2014, Arthur Glennie wrote: [quote] I'm trying to write a body rule that will catch an email exactly containing any number of characters up to 15, followed by a URI, followed by any number of characters, up to 15. My attempt has failed miserably, and hoped someone could help.

Re: Help with body rule

2014-05-28 Thread Adam Katz
On 05/28/2014 11:16 AM, Alex wrote (syntax highlighting added): > I'm trying to write a body rule that will catch an email exactly > containing any number of characters up to 15, followed by a URI, > followed by any number of characters, up to 15. My attempt has failed > miserably, and hoped someon

RE: Help with body rule

2014-05-28 Thread Arthur Glennie
[quote] I'm trying to write a body rule that will catch an email exactly containing any number of characters up to 15, followed by a URI, followed by any number of characters, up to 15. My attempt has failed miserably, and hoped someone could help. [/quote] This should work for you: BodyLOC

Help with body rule

2014-05-28 Thread Alex
Hi, I'm trying to write a body rule that will catch an email exactly containing any number of characters up to 15, followed by a URI, followed by any number of characters, up to 15. My attempt has failed miserably, and hoped someone could help. body LOC_SHORT_BODY_URI m{^.{0,15}(https?://.