You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2023/07/12 00:10:46 UTC

[Bug 8146] New: regression: sa-learn silently returns non-zero on empty Maildir folder

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: david@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.