On Mon, 2017-08-07 at 14:17 -0500, Jerry Malcolm wrote: > 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, > [...] > > 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?
That particular one appears to be part of the Amavisd-new generated headers. You can get the same rules with individual scores in stock SA using the _TESTSSCORES(,)_ Template Tag with the add_header config option. See M::SA::Conf docs [1]. For ad-hoc testing without adding this to your general SA / spamd configuration, feed the sample message to the plain spamassassin script with additional --cf configuration: spamassassin --cf="add_header all TestsScores tests=_TESTSSCORES(,)_" < message Also see 10_default_prefs.cf for more informational detail in the stock Status header. > 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> Not your best option for ad-hoc tests... ;) > > > 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? You will need SA configuration. The spamd protocol itself does not allow such fine grained configuration. [1] http://spamassassin.apache.org/full/3.4.x/doc/Mail_SpamAssassin_Conf.html -- char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}