|
SA Bugzilla – Full Text Bug Listing |
Summary: | making spamc capable to request local only check | ||
---|---|---|---|
Product: | Spamassassin | Reporter: | Andrzej Filip <anfi> |
Component: | spamc/spamd | Assignee: | SpamAssassin Developer Mailing List <dev> |
Status: | NEW --- | ||
Severity: | enhancement | CC: | anfi, kmcgrail, matt |
Priority: | P5 | ||
Version: | unspecified | ||
Target Milestone: | Undefined | ||
Hardware: | Other | ||
OS: | other | ||
Whiteboard: | |||
Attachments: | spamc "--local" option |
Description
Andrzej Filip
2006-12-11 09:07:17 UTC
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. |