I tried SYMBOLS. You are correct that it lists the tests, but not the
results:
BAYES_95,HTML_IMAGE_ONLY_32,HTML_MESSAGE,JAM_DO_STH_HERE,LOTS_OF_MONEY,MIME_HTML_ONLY,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_SBL_CSS,SUBJ_DOLLARS,T_HTML_TAG_BALANCE_CENTER,URIBL_BLOCKED,URIBL_DBL_SPAM,URIBL_SBL_A
But I saw this line in a forum discussion... So I'm sure there is some
way to generate it.
>>> tests=[AWL=-1.103, BAYES_00=-2.599,
HTML_MESSAGE=0.001,URIBL_BLACK=1.955, URIBL_GREY=0.25]
Any ideas?
Thx
On 8/7/2017 1:13 PM, Daniel J. Luke wrote:
On Aug 7, 2017, at 2:00 PM, Jerry Malcolm <techst...@malcolms.com> 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.
did you try SYMBOLS?
spamd/PROTOCOL says:
"SYMBOLS command returns the same as CHECK, followed by a line listing all the
rule names, separated by commas."
(that will give you the names of all the tests hit, but I don't think you get
their scores).
(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?