spamassassin-dev September 2011 archive
Main Archive Page > Month Archives  > spamassassin-dev archives
spamassassin-dev: [Bug 4691] fast_body, fast_rawbody, and tmetho

[Bug 4691] fast_body, fast_rawbody, and tmethod support

From: <bugzilla-daemon_at_nospam>
Date: Wed Sep 07 2011 - 03:46:05 GMT

Adam Katz <> changed:

           What |Removed |Added
                 CC| |

--- Comment #32 from Adam Katz <> 2011-09-07 03:46:05 UTC ---
Is this patch still feasible?

I'd like to resurrect this idea in a slightly different manner: default
limits. Something like this (assuming "string 0:0" removes any scope from the

  default_tmethod string 0:512000

  body TEST_WHOLE_MSG /\btest\b/
  tmethod TEST_WHOLE_MSG string 0:0
  body TEST_FROM_END /\bsincerely,/i
  tmethod TEST_FROM_END string -100:100

With uri, body, rawbody, etc. limited to just the first 500kB (the default
max_size for spamc), we should theoretically then be able to increase the
default max_size considerably without much overhead. Any rule (such as the two
defined above) that wants to re-scopes itself can do so explicitly.

This should significantly reduce scan time, especially if a script regularly
drills into the timing logs and reduces the scope of the more
resource-intensive rules (incrementally until it affects the hit stats).

-- Configure bugmail: ------- You are receiving this mail because: ------- You are the assignee for the bug.