Re: Blank line rules

2014-05-26 Thread Axb
On 05/26/2014 09:20 PM, James B. Byrne wrote: On a related note, what is the difference between 'body' and 'rawbody' rules? http://wiki.apache.org/spamassassin/WritingRules

Re: Blank line rules

2014-05-26 Thread James B. Byrne
On Thu, May 22, 2014 17:50, Karsten Bräckelmann wrote: > > > There's another issue with your approach of different rules matching "up > to n" occurrences and "more than n". The first will always match in > addition, if the latter matches. > > If the desired behavior is mutually exclusive matching

Re: Blank line rules

2014-05-23 Thread John Hardin
On Fri, 23 May 2014, Alex wrote: On Thu, May 22, 2014 at 8:44 PM, John Hardin wrote: On Thu, 22 May 2014, Karsten Bräckelmann wrote: On Thu, 2014-05-22 at 15:49 -0400, James B. Byrne wrote: rawbody RAW_BLANK_LINES_05 /(\r?\n){5,9}/i Why is everyone trying to match empty lines these days?

Re: Blank line rules

2014-05-23 Thread Martin Gregorie
On Fri, 2014-05-23 at 19:36 -0400, Alex wrote: > Hi, > > On Thu, May 22, 2014 at 8:44 PM, John Hardin wrote: > > > On Thu, 22 May 2014, Karsten Bräckelmann wrote: > > > > On Thu, 2014-05-22 at 15:49 -0400, James B. Byrne wrote: > >> > >>> I am clearly missing something with these rules but I la

Re: Blank line rules

2014-05-23 Thread Alex
Hi, On Thu, May 22, 2014 at 8:44 PM, John Hardin wrote: > On Thu, 22 May 2014, Karsten Bräckelmann wrote: > > On Thu, 2014-05-22 at 15:49 -0400, James B. Byrne wrote: >> >>> I am clearly missing something with these rules but I lack the >>> experience to >>> see what it is: >>> >>> score RAW_BL

OFF-TOPIC: The Brilliance of PootieTang was Re: Blank line rules

2014-05-22 Thread Kevin A. McGrail
On 5/22/2014 9:17 PM, Karsten Bräckelmann wrote: On Thu, 2014-05-22 at 20:56 -0400, Kevin A. McGrail wrote: On 5/22/2014 5:50 PM, Karsten Bräckelmann wrote: Why is everyone trying to match empty lines these days? Must be spam I'm missing out on. ;) Who here has seen Pootietang and is laughing

Re: Blank line rules

2014-05-22 Thread Karsten Bräckelmann
On Thu, 2014-05-22 at 20:56 -0400, Kevin A. McGrail wrote: > On 5/22/2014 5:50 PM, Karsten Bräckelmann wrote: > > Why is everyone trying to match empty lines these days? Must be spam > > I'm missing out on. ;) > > Who here has seen Pootietang and is laughing about this? Just me, likely... The f

Re: Blank line rules

2014-05-22 Thread Kevin A. McGrail
On 5/22/2014 5:50 PM, Karsten Bräckelmann wrote: Why is everyone trying to match empty lines these days? Must be spam I'm missing out on. ;) Who here has seen Pootietang and is laughing about this? Just me, likely...

Re: Blank line rules

2014-05-22 Thread Amir Caspi
On May 22, 2014, at 6:44 PM, John Hardin wrote: > > You might want to do this: > > rawbody MANY_BLANK_LINES /(?:(?:)?\r?\n){9}/mi AC_BR_BONANZA should cover the HTML case. It could be easily extended to match standard LF or CR per above. (In my case I am matching something like 20 newlines

Re: Blank line rules

2014-05-22 Thread John Hardin
On Thu, 22 May 2014, Karsten Bräckelmann wrote: On Thu, 2014-05-22 at 15:49 -0400, James B. Byrne wrote: I am clearly missing something with these rules but I lack the experience to see what it is: score RAW_BLANK_LINES_05 0.5 rawbody RAW_BLANK_LINES_05 /(\r?\n){5,9}/i Why is everyone trying

Re: Blank line rules

2014-05-22 Thread Karsten Bräckelmann
On Thu, 2014-05-22 at 13:47 -0700, John Hardin wrote: > On Thu, 22 May 2014, James B. Byrne wrote: > > rawbody RAW_BLANK_LINES_05 /(\r?\n){5,9}/i > Regular expressions by default only consider a single line of text. You Nope. You're thinking about ^ and $ by default only matching the beginning

Re: Blank line rules

2014-05-22 Thread Karsten Bräckelmann
On Thu, 2014-05-22 at 15:49 -0400, James B. Byrne wrote: > I am clearly missing something with these rules but I lack the experience to > see what it is: > > score RAW_BLANK_LINES_05 0.5 > rawbody RAW_BLANK_LINES_05 /(\r?\n){5,9}/i Why is everyone trying to match empty lines these days? Must be s

Re: Blank line rules

2014-05-22 Thread Ian Zimmerman
On Thu, 22 May 2014 13:47:04 -0700 (PDT) John Hardin wrote: John> Regular expressions by default only consider a single line of John> text. You need to provide an option to say "treat multiple lines John> as a single line". Try this: >rawbody RAW_BLANK_LINES_05 /(?:\r?\n){5,9}/m >rawbod

Re: Blank line rules

2014-05-22 Thread John Hardin
On Thu, 22 May 2014, James B. Byrne wrote: I am clearly missing something with these rules but I lack the experience to see what it is: score RAW_BLANK_LINES_05 0.5 rawbody RAW_BLANK_LINES_05 /(\r?\n){5,9}/i describe RAW_BLANK_LINES_05 Raw body contains 5 or more consecutive empty lines score R

Blank line rules

2014-05-22 Thread James B. Byrne
I am clearly missing something with these rules but I lack the experience to see what it is: score RAW_BLANK_LINES_05 0.5 rawbody RAW_BLANK_LINES_05 /(\r?\n){5,9}/i describe RAW_BLANK_LINES_05 Raw body contains 5 or more consecutive empty lines score RAW_BLANK_LINES_10 1.0 rawbody RAW_BLANK_LINES_