Bug 1237 - spamc -c always return 0
Summary: spamc -c always return 0
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: 2.41
Hardware: Other OpenBSD
: P2 critical
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-28 09:04 UTC by Robin
Modified: 2003-02-20 01:35 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Robin 2002-11-28 09:04:36 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?
Comment 1 Duncan Findlay 2002-12-12 14:59:08 UTC
Fixed in CVS.
Comment 2 Malte S. Stretz 2003-02-20 10:35:26 UTC
please ignore: corrected an error in bugzilla db