http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4910
Summary: spamc with -E option returns wrong exit code
Product: Spamassassin
Version: 3.0.5
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: spamc/spamd
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
spamc man page tells us that -E option means "Filter according to the other
options, but set the process exitcode to 1 if message is spam, 0 if not spam or
processing failure occurs."
But if the failure occurs (e.g. socket specified with -U doesn't exist or spamd
is not running, etc.) spamc -E doesn't returns zero. It returns error code
instead.
The following spamc options were used:
-E -u -U -s
-x was NOT used so 'safe fallback' is enabled.
I suppose that spamc -E must return zero if the failure occurs and 'safe
fallback' is enabled.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.