SA Bugzilla – Bug 5238
making spamc capable to request local only check
Last modified: 2011-11-07 15:49:18 UTC
It woul be nice to allow spamc request "local only" checks. I download messages from multiple email accounts, deploying "non local" test for some of then is not necessary.
Created attachment 4139 [details] spamc "--local" option This patch gives spamc the "--local" switch, which passes the SPAMC_LOCAL flag to libspamc, which sends "Network-tests: off" to spamd. PerMsgStatus has been given its own scoreset for itself and plugins to reference, since the client turning network tests off will result in a different scoreset from the SpamAssassin object (assuming that spamd wasn't started with the "local tests only" option). This failed one of the spamc_x_e.t tests and three of the spamc_x_E_R.t tests, but I'm pretty sure that has nothing to do with my patch.
Are there any chances to add support for --local option to spamc? I would like it for privacy reasons e.g. * running "local only" tests for messages received from IMAP folder INBOX * running "remote" tests for messages received from IMAP folder Spambox
I'll take a look at this patch but in the meantime, you could simply run two different spamd's on different ports using different config files.
> I'll take a look at this patch but in the meantime, you could simply run two > different spamd's on different ports using different config files. If work is done on this, consider also making it possible to control (disable/enable) network tests with a config option. I find it unnecessarily restrictive to have this available only through an API call (and I don't see a good reason for this). Related to Bug 4165: Add ability to turn off all network tests (ie local_tests_only) via config
I had been using two personal (non root user) spamd on different unix sockets.