David,

Thanks, I'll try REPORT .

I am indeed using the full spamd invocation as you described. I just abbreviated it in my orig post. It has been working for a couple of years. I'm just seeing a few spams that I can't seem to get rid of. I've tried training BAYES with them. But I'm still getting negative scores on them. So I simply wanted to be able to do a bit of research disecting the score to see why the score is what it is.

Thanks again.

Jerry


On 8/7/2017 1:33 PM, David B Funk wrote:
On Mon, 7 Aug 2017, Jerry Malcolm wrote:

I'm invoking spamd using:

CHECK SPAMC/1.2\r\n
<message>

I'm getting the expected response such as:

Spam: False ; -1.8 / 4.0

I am trying to figure out how to get the TESTS= results of the individual tests returned as well.

(e.g.tests=[AWL=-1.103, BAYES_00=-2.599, HTML_MESSAGE=0.001,URIBL_BLACK=1.955, URIBL_GREY=0.25]) I see there's an option in spamc that appears to do that. But I can't figure out how to make
that happen when I do a direct socket invoke of spamd.

Can someone tell me what I need to add to the spamd call (and the syntax) in order to get the
results of the individual tests returned as part of the status?

Thanks,

Jerry

Jerry,
the spamd 'CHECK' command just returns the status+score, nothing else.

the spamd 'REPORT' command returns the status+score and report.
So replace 'CHECK' with 'REPORT' in your spamd call. Then be ready to read an arbitrary number of additonal lines in the return connection.

Note that it will not return any part of the original message.
If you want to use any of the SA report features that add additional headers (such as the relays header) you will need to use a different spamd command: 'HEADERS'.

BTW, I cannot tell from your posting if you have one detail correct; you need the command, (and any addtional optional arguments) then a blank line, then the message.

EG:

REPORT SPAMC/1.2\r\n
User: joe-blow\r\n
\r\n
<message>





Reply via email to