https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6029
Summary: sa-learn launches rebuild_learner_caches() in verbose
mode, which results in lots of "synced databases from
journal" messages
Product: Spamassassin
Version: 3.2.5
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Learner
AssignedTo: [email protected]
ReportedBy: [email protected]
Line 326 of sa-learn.raw:
if ($synconly) {
$spamtest->rebuild_learner_caches(
{
verbose => 1, # <----- PROBLEM
showdots => $opt{'showdots'}
}
);
The "verbose => 1" has the side effect of triggering info messages in DBM.pm
(line 1318):
my $msg = ("bayes: synced databases from journal in " .
($done - $started) .
" seconds: $count unique entries ($total_count total entries)");
if ($opts->{verbose}) {
print $msg,"\n";
} else {
dbg($msg);
}
As a result, if you run sa-learn as a cron job (like in the Debian package),
the sysop gets lots of uninteresting warnings/e-mail everyday:
bayes: synced databases from journal in 1 seconds: 155 unique entries (232
total entries)
bayes: synced databases from journal in 2 seconds: 631 unique entries (912
total entries)
Suggestion: add a verbose option to sa-learn. By default, verbose mode should
be OFF.
--
Configure bugmail:
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.