On Sun, 18 Feb 2018, Gianluca Furnarotto wrote:
I’ve done this modifications in local.cf:
# ifplugin
loadplugin Mail::SpamAssassin::Plugin::Shortcircuit
loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
loadplugin Mail::SpamAssassin::Plugin::Bayes
#ok_languages en it
ok_locales en
# endif
And command spamassassin —lint doesn’t show any errors. Tomorrow I will continue
the debugging. It seems it doesn’t agree ifplugin-endif and also ok_languages
Three points:
(1) the syntax for "ifplugin" is:
ifplugin Mail::SpamAssassin::Plugin::whatever
It's a test to see whether that plugin is loaded, so that you can write
plugin-dependent rules without generating lint errors when the plugin
isn't loaded.
(2) "ifplugin" only accepts one plugin name.
(3) "loadplugin" commands should be in your v340.pre file, so that they
get loaded before any rules.
If you added that "ifplugin" block to your config file, what exactly were
you trying to achieve with that block?
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
USMC Rules of Gunfighting #6: If you can choose what to bring
to a gunfight, bring a long gun and a friend with a long gun.
-----------------------------------------------------------------------
5 days until George Washington's 286th Birthday