Comment 0 for bug 165184

Binary package hint: amavisd-new

TO REPRODUCE

1. install amavisd-new and spamassassin
2. edit /etc/default/spamassassin to read CRON=1
3. edit /etc/spamassassin/local.cf to read use_bayes 0
4. wait until the cronjob runs (*/3:18)

PROBLEM

Cron then starts "/usr/sbin/amavisd-new-cronjob sa-sync" which in turn runs "/usr/bin/sa-learn --sync" which then complains by mail:
ERROR: configuration specifies 'use_bayes 0', sa-learn disabled

SUGGESTION

Avoid running sa-learn if use_bayes is set to 0. I'm however not sure how this can queried from the spamassassin configuration.