SA Bugzilla – Bug 2295
Patch adding thresholds to report_safe
Last modified: 2003-09-23 06:50:28 UTC
This patch adds the following options to spamassassin: report_safe_threshold report_safe_attach_threshold report_safe_defang_threshold Basically, they're intended to allow finer control over the rewriting process. report_safe_threshold, if defined, will be a threshold value for SA to follow the report_safe settings (so it has no effect if report_safe = 0). If either of the other two options is non zero, they'll control the threshold for which a message is re-written. If the mail scores >= report_safe_attach_threshold, rewrite_as_spam() is called. If it scores >= report_safe_defang_threshold, rewrite_as_spam() is called, and the attachment type is changed to text/plain. If these options are non zero, the report_safe_threshold and report_safe options are overridden. Minimal testing has been performed so far. I have been running my email account through a patched system, with no obvious ill effects. I have not confirmed that all the POD documentation looks as pretty as it should either. The patch modifies PerMsgStatus.pm and Conf.pm
Created attachment 1217 [details] Patch for report_threshold enhancements.
Thanks, but I don't think we want to add this much complexity to how report_safe and friends work. This is far too complicated and very few users would use this feature, so I don't think the tradeoff of requiring ourselves to maintain this feature would pay off. There's also the problem that there really isn't much danger difference between high and low scoring spam, it may even be that low scoring spam is WORSE than high scoring spam because those are more sophisticated spammers. If a user is vulnerable, then all of their spam should be encapsulated. I think most of the desired effect can be achieved by setting a higher required_hits number and treating high-scoring ham differently than low-scoring ham. You can do the same with spam. Lots of advanced users already do that. I realize that doesn't match the flexibility of your patch, but perhaps that would accomplish some of what you want.
Okay, I'm going ahead to close this one for the aforementioned reasons.