https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6717

Kevin A. McGrail <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #5014|0                           |1
        is obsolete|                            |

--- Comment #4 from Kevin A. McGrail <[email protected]> ---
Created attachment 5129
  --> https://issues.apache.org/SpamAssassin/attachment.cgi?id=5129&action=edit
Revised Patch to add EX_TEMPFAIL for -X option for spamc

The patch is trivial. I cleaned up the patch mostly for verbiage and to make it
work with the current trunk.  I also added more safety checks to ensure -x is
required.

Here's showing it work where with -X it gets EC 75 and without it gets EC 69:

[root@devel spamc]# ./spamc -l -x  -c -d 127.0.0.1  < /tmp/1.mbox ; echo $?
spamc: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Connection
refused
spamc: connect to spamd on 127.0.0.1 failed, retrying (#2 of 3): Connection
refused
spamc: connect to spamd on 127.0.0.1 failed, retrying (#3 of 3): Connection
refused
spamc: connection attempt to spamd aborted after 3 retries
0/0
69
[root@devel spamc]# ./spamc -l -x -X  -c -d 127.0.0.1  < /tmp/1.mbox ; echo $?
spamc: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Connection
refused
spamc: connect to spamd on 127.0.0.1 failed, retrying (#2 of 3): Connection
refused
spamc: connect to spamd on 127.0.0.1 failed, retrying (#3 of 3): Connection
refused
spamc: connection attempt to spamd aborted after 3 retries
0/0
75

I'm currently running a make test on this prior to committing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to