spamassassin ignores maxhits on tflags multiple
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spamassassin (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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/
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/
Tested successfully on a precise server. Should work on any Ubuntu version.
Attached is the diff between those two files.
We realized that this issue is not an issue.
The maxhits feature was committed in SA after the release of 3.3.2.
It means that Ubuntu will have this feature with the next version of SA (3.4?)
Sorry for any inconvenience.