Spamassassin allows administrators to give their Bayes databases greater emphasis by short circuiting the analytical process.
This is normally configured in /etc/spamassassin/local.cf at the very end. However, it is rather annoying, to edit this file with every update of the container.
Having two environment variables to configure this would be very helpful.
Proposal:
SA_SHORTCIRCUIT_BAYES_SPAM - if set to 1, then it will activate shortcircuit bayes_99 spamSA_SHORTCIRCUIT_BAYES_HAM- if set to 1, then it will activate shortcircuit bayes_00 hamCan you provide a pull request for this?
Sure, it is on already. See PR #1119
Sorry missed that, will have a look asap
These variables do uncomment the relevant lines in local.conf, but these lines are within a conditional block and are only applied if the Shortcircuit plugin is active which is not the case by default which is very misleading !
When set we should thus also enable this plugin or, maybe better, add environment variables to enable and disable plugins...
Thanks @evlist for the remark.
I opened PR #1443 to tackle this problem.
I think enabling a plugin if a specific feature is requested, is smarter and more intuitive than having an additional config option. Of course this only makes sense, if there is a related configuration ENV.