spamassassin-users October 2010 archive
Main Archive Page > Month Archives  > spamassassin-users archives
spamassassin-users: Only running network tests when necessary -

Only running network tests when necessary - feature request

From: <Darxus_at_nospam>
Date: Sat Oct 30 2010 - 01:42:34 GMT

I'd like to see spamassassin only run network tests when they might
affect the outcome.

For example, if you run all non-network tests, and at that point an email's
score qualifies as spam, and then you run all the non-spam network tests
(hitting whitelists), and it still qualifies as spam, there's no reason
to ever run the spam network tests (hitting blacklists).


Perl pseudocode:

NETTEST: while (1) {
  if ($score < 5) {
    run_one_network_spam_test() or last NETTEST;
  } else {
    run_one_network_nonspam_test() or last NETTEST;

Of course it would be necessary to have an option to disable this, for
things like submitting corpora to the mass checks.

I would probably run the network tests in random order. But I might have
more affinity for randomness than average.

-- "Let's just say that if complete and utter chaos was lightning, then he'd be the sort to stand on a hilltop in a thunderstorm wearing wet copper armour and shouting 'All gods are bastards'." - The Color of Magic