https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8146
Bug ID: 8146 Summary: regression: sa-learn silently returns non-zero on empty Maildir folder Product: Spamassassin Version: 4.0.0 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Learner Assignee: dev@spamassassin.apache.org Reporter: da...@mandelberg.org Target Milestone: Undefined After upgrading the Debian package for spamassassin from 3.4.6-1 to 4.0.0-6, when I run sa-learn on a Maildir folder with no messages in it, it returns 1 instead of 0. And it doesn't print an error, so it took me a while to figure out what was going on. dseomn@mail-storage-bbf78862:~$ sudo -u vmail sa-learn --dbpath=/var/cache/mail/mandelberg.org/david/spamassassin/bayes --ham /var/local/mail/persistent/mail/mandelberg.org/david/Maildir/.[redacted] Learned tokens from 0 message(s) (0 message(s) examined) dseomn@mail-storage-bbf78862:~$ echo $? 1 -- You are receiving this mail because: You are the assignee for the bug.