SA Bugzilla – Bug 5274
Plugins not loaded when site rules files are evaluated
Last modified: 2007-01-04 11:44:35 UTC
In 50_scores.cf, scores are wrapped in the following manner: ifplugin Mail::SpamAssassin::Plugin::SPF score USER_IN_SPF_WHITELIST -100.000 score USER_IN_DEF_SPF_WL -7.500 score ENV_AND_HDR_SPF_MATCH -7.500 endif # Mail::SpamAssassin::Plugin::SPF Using the same syntax but changing the scores in a file in the site rules directory results in the "ifplugin" always returning false. This behavior also occurs for the user prefs file. The reason this is a bug is that if the SPF plugin (in my example) is not loaded, then the "score" lines throw a lint warning.
Please provide more information, such as the output from "spamassassin -D --lint". Unless you're loading the plugin from a cf (which we have documented is bad), the plugins load before any rules via the pre files.
It must have been a weird "ifplugin" nesting error with no output in lint. I had deleted the "ifplugin" lines to make things work and manually adding them back results in everything working fine. My bad.