Bug 5238 - making spamc capable to request local only check
Summary: making spamc capable to request local only check
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: unspecified
Hardware: Other other
: P5 enhancement
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-11 09:07 UTC by Andrzej Filip
Modified: 2011-11-07 15:49 UTC (History)
3 users (show)



Attachment Type Modified Status Actions Submitter/CLA Status
spamc "--local" option patch None Matthew Cline [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Andrzej Filip 2006-12-11 09:07:17 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.
Comment 1 Matthew Cline 2007-09-27 23:25:33 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.
Comment 2 anfi 2011-11-07 10:14:39 UTC
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
Comment 3 Kevin A. McGrail 2011-11-07 14:54:10 UTC
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.
Comment 4 Mark Martinec 2011-11-07 15:14:38 UTC
> 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
Comment 5 anfi 2011-11-07 15:49:18 UTC
I had been using two personal (non root user) spamd on different unix sockets.