Bug 4551 - spamc does not pass through spamd's error code
Summary: spamc does not pass through spamd's error code
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: Other other
: P5 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-21 21:03 UTC by Duncan Findlay
Modified: 2005-08-21 13:25 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 Duncan Findlay 2005-08-21 21:03:09 UTC
My patch for bug 4546 involves having spamd respond with EX_UNAVAILABLE.
Unfortunately, spamc does not properly parse this error, and instead returns
EX_IOERR (I believe because it does not get the output it is looking for and
spamd closes the connection.)

spamc should parse the error, exit with the correct error message and error
code. Right now, no message is output.
Comment 1 Michael Parker 2005-08-21 21:14:53 UTC
Subject: Re:   New: spamc does not pass through spamd's error code
 when TELLing

The code for check and tell is virtually identical.  I suspect this bug
report is too specific and it is a generic problem for spamc and not
limited to the tell call.

Michael
Comment 2 Duncan Findlay 2005-08-21 21:25:41 UTC
I've verified that spamc -x returns 74 instead of 69 when sent an EX_UNAVAILABLE
also.