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.
body MY_BODY_SHORT_MAIL /\A.{0,150}\z/s
describe MY_BODY_SHORT_MAIL Short Mail
score MY_BODY_SHORT_MAIL 0.1
This might be simpler and faster (untested):
rawbody __MSG_MIN_LEN /.{151}/s
meta WHATEVER !__MSG_MIN_LEN && etc.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
The third basic rule of firearms safety:
Keep your booger hook off the bang switch!
-----------------------------------------------------------------------
4 days until SWMBO's Birthday