https://bz.apache.org/SpamAssassin/show_bug.cgi?id=5740

Sidney Markowitz <sid...@sidney.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sid...@sidney.com
   Target Milestone|Undefined                   |4.0.0
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Sidney Markowitz <sid...@sidney.com> ---
For some reason the use_bayes config option always shows up as 1 in spamd, so
it didn't work to check that. It does work to check if there is a bayes_scanner
defined, and also to have spamd check th4 bayes_learn_during_report option.
Note that if the site local.cf enables bayes, this fix allows a user to disable
the learning in their userprefs by setting bayes_learn_during_report 0

The fix is to wrap the code in spamd inside a

if (defined $spamtest->{bayes_scanner} &&
    $spamtest->{conf}->{bayes_learn_during_report})

Committed revision 1899889.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to