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>
--
Dave Funk University of Iowa
<dbfunk (at) engineering.uiowa.edu> College of Engineering
319/335-5751 FAX: 319/384-0549 1256 Seamans Center
Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{