SA Bugzilla – Bug 3854
[review] _TESTSSCORES_ doesn't list anything for no hit rules
Last modified: 2004-10-07 07:24:50 UTC
When no rules are hit, _TESTS_ results in "none". However, _TESTSSCORES_ results in blank output (""). ie: add_header all Test tests=_TESTS_ testsscores=_TESTSSCORES_ and no hits equals: X-Spam-Test: tests=none testsscores=
BTW, I believe this behavior has been this way since adding in TESTSSCORES. It's in 2.64 at least, I didn't go back further.
Created attachment 2400 [details] suggested patch trivial patch to return "none" if no rules hit
may as well put it in 3.0.1
+1 on this fix going into 3.0.1. But maybe it should return "none=0" to make it easier for possible scripts to parse that line?
Subject: Re: [review] _TESTSSCORES_ doesn't list anything for no hit rules On Sat, Oct 02, 2004 at 06:02:24AM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote: > But maybe it should return "none=0" to make it easier for possible scripts to > parse that line? I thought about that, but decided that "none" ought to be a special token. I'll go either way if there's a strong enough desire to do that though.
+1
-0.5 for 3.0.1 Is this really necessary? It's cosmetic, but it could cause scripts that parse it to barf, which is not what we want for a minor release.
Subject: Re: [review] _TESTSSCORES_ doesn't list anything for no hit rules On Sat, Oct 02, 2004 at 12:32:11PM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote: > -0.5 for 3.0.1 > > Is this really necessary? It's cosmetic, but it could cause scripts that parse > it to barf, which is not what we want for a minor release. It's the difference between a bug and a feature IMO. The behavior has been there since 2.6x, but is documented (and expected) to work "same as _TESTS_", which it doesn't.
committed. r54023