Public bug reported: Using spamassassin 3.3.2 on precise with perl 5.14.2.
When trying spamassassin -D --lint 2>&1 < test.eml , we realized that some special rules had not the expected behavior. One can use tflags on a rule, and specify multiple. This causes SA not to stop after the first hit but instead comtinue to evaluate the rule against the mail. And one can also specify maxhits=N, with N the maximum number of occurrences he wants to checks for. This is usefull to count only a few occurences but not too much, to avoid loosing resources or simply count an exact number of matches on the rule. But the maxhits is ignored on precise. This happens because the /usr/share/perl5/Mail/SpamAssassin/Plugin/Check.pm is not up to date (compared with ~/spamassassin- trunk/lib/Mail/SpamAssassin/Plugin/Check.pm directly from the svn checkout of SA project, done with svn checkout http://svn.apache.org/repos/asf/spamassassin/trunk spamassassin-trunk ). This causes SA to ignore the maxhits instruction on tflags multiple rules. Ultimately this is a potential resource sink hole and is, in all cases, inefficient and deviate from the SA project itself. We couldn't find any reason or explanation nowere, if there is one, please explain. Patch is simple: update /usr/share/perl5/Mail/SpamAssassin/Plugin/Check.pm with the Check.pm coming from SA svn checkout. Tested successfully on a precise server. Should work on any Ubuntu version. Attached is the diff between those two files. ** Affects: spamassassin (Ubuntu) Importance: Undecided Status: New ** Patch added: "Simple diff between the precise package Check.pm and the SA svn checkout Check.pm" https://bugs.launchpad.net/bugs/1193352/+attachment/3708957/+files/diff.Check.pm -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to spamassassin in Ubuntu. https://bugs.launchpad.net/bugs/1193352 Title: spamassassin ignores maxhits on tflags multiple To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/spamassassin/+bug/1193352/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs