Re: regex for short messages

2010-06-29 Thread Daniel Lemke
the meta... Thank you :-) Daniel -- View this message in context: http://old.nabble.com/regex-for-short-messages-tp28880387p29020879.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Re: regex for short messages

2010-06-28 Thread Bowie Bailey
Daniel Lemke wrote: > Hmm, I've just noticed that my rule is working fine for simple text > messages, but is also been triggered when checking mails containing html > (http://pastebin.com/xB7SKnFV). > > rawbody T__SHORT_MAIL /\A.{0,150}\z/s > > -D reports: > Jun 28 13:32:40.961 [4200] dbg:

Re: regex for short messages

2010-06-28 Thread Daniel Lemke
e text messages, but is also been triggered when checking mails containing html (http://pastebin.com/xB7SKnFV). rawbody T__SHORT_MAIL /\A.{0,150}\z/s -D reports: Jun 28 13:32:40.961 [4200] dbg: rules: ran rawbody rule T__SHORT_MAIL ==> got hit: " Any hints on this? Daniel -- View this message in context: http://old.nabble.com/regex-for-short-messages-tp28880387p29008540.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Re: regex for short messages

2010-06-14 Thread Daniel Lemke
> From: Bowie Bailey [mailto:bowie_bai...@buc.com] > Sent: Monday, June 14, 2010 5:18 PM > > I see now. It's hitting on long messages too. I saw it match the subject > line > rather than the body. I'm not quite sure why. It works if you change it to a > rawbody match. > Thanks a lot that solv

Re: regex for short messages

2010-06-14 Thread John Hardin
On Mon, 14 Jun 2010, Daniel Lemke wrote: I want to check some mails for their char count (will be part of a meta rule) but spamassassin does hit the rule, even if the mail has less chars than defined in regex. bodyMY_BODY_SHORT_MAIL /\A.{0,150}\z/s describe

Re: regex for short messages

2010-06-14 Thread Bowie Bailey
Bowie Bailey wrote: > Daniel Lemke wrote: > >> Hi, >> >> I want to check some mails for their char count (will be part of a meta >> rule) but spamassassin does hit the rule, even if the mail has less chars >> than defined in regex. >> >> The regex was tested in Perl and was working fine, so what

Re: regex for short messages

2010-06-14 Thread Karsten Bräckelmann
On Mon, 2010-06-14 at 07:41 -0700, Daniel Lemke wrote: > I want to check some mails for their char count (will be part of a meta > rule) but spamassassin does hit the rule, even if the mail has less chars > than defined in regex. You mean *more* chars, no? Less than zero isn't possible, and the RE

Re: regex for short messages

2010-06-14 Thread Bowie Bailey
Daniel Lemke wrote: > Hi, > > I want to check some mails for their char count (will be part of a meta > rule) but spamassassin does hit the rule, even if the mail has less chars > than defined in regex. > > The regex was tested in Perl and was working fine, so what did I miss? > > body

regex for short messages

2010-06-14 Thread Daniel Lemke
/\A.{0,150}\z/s describeMY_BODY_SHORT_MAIL Short Mail score MY_BODY_SHORT_MAIL 0.1 Best regards Daniel -- View this message in context: http://old.nabble.com/regex-for-short-messages-tp28880387p28880387.html Sent from the