https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6069
Summary: spamc: learning exit codes broken Product: Spamassassin Version: 3.2.5 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P5 Component: spamc/spamd AssignedTo: dev@spamassassin.apache.org ReportedBy: guent...@rudersport.de The spamc docs state: -L learn type, --learntype=type Send message to spamd for learning. The "learn type" can be either spam, ham or forget. The exitcode for spamc will be set to 5 if the message was learned, or 6 if it was already learned. Doesn't work that way though. The exit code in both cases is 0 success, regardless whether the message has been learned, or not. No difference with the -x option. $ spamc -L ham < ham.msg; echo $? Message was already un/learned 0 The code in spamc.c clearly shows, that EX_OK will be returned always. (Just search for "Message was".) Also applies to trunk, the code didn't change. -- Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.