Bug#1089557: spamscan-sa report spamassassin error due to gSpamRulesDir
Bill Allombert <[email protected]> Sun, 8 Dec 2024 23:28:56 +0100
| Newsgroups | gmane.linux.debian.devel.debbugs |
|---|---|
| Message-ID | <Z1YdqMoCidi3DubQ__41781.3836642139$1733697207$gmane$org@pari.math.u-bordeaux.fr> |
Package: debbugs
Version: 2.6.2
Severity: normal
Hello Don,
This is not a new issue even while I report it now:
spamscan is calling spamscan-sa and this leads to error message from cron:
Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan!
Check that the necessary '.pre' files are in the config directory.
At a minimum, v320.pre loads the Check plugin which is required.
the issue is with these two lines:
36 site_rules_filename => $config{spam_rules_dir},
37 userprefs_filename => $config{spam_user_prefs},
$config{spam_rules_dir} is set by Debbugs::config to /usr/share/spamassassin
I do not think this is correct, it should be /etc/spamassassin
(that is where v320.pre is).
Also I tried to set $gSpamRulesDir in /etc/debbugs/config but it does not works
$gSpamRulesDir = "/etc/spamassassin";
probably because it is missing from the 'globals' EXPORT_TAGS in
Debbugs/Config.pm
Does that makes sense ?
Cheers,
Bill.