SA Bugzilla – Bug 1237
spamc -c always return 0
Last modified: 2003-02-20 01:35:26 UTC
The man page for spamc state: -c Just check if the message is spam or not. Set process exitcode to 1 is message is spam, 0 if not spam or processing failure occurs. Will print score/threshold to stdout (as ints) or 0/0 if there was an error. It doesn't actually do this (I have tested with 2.41 and 2.43). This is a very desirable way to use spamc, in that it lets the user tag the spam with a discreet header rather than writing all over it as spamassasin's default mode does. It took a long time to identify this as spamc's fault, and it wasn't till I encountered the page at <http://www.mew.org/ml/mew-int-2.0/msg00677.html> that I realized what was going on. That page links to a patch in the SpamAssassin CVS at Sourceforge which fixes this problem. Why isn't the distro patched for this?
Fixed in CVS.
please ignore: corrected an error in bugzilla db