Bug 367 - spamc/spamd command-line option to set required_hits value
Summary: spamc/spamd command-line option to set required_hits value
Status: RESOLVED WONTFIX
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: 2.20
Hardware: Other other
: P2 enhancement
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-30 15:47 UTC by John Horne
Modified: 2002-06-06 12:59 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status
Patch to spamc.c patch None John Horne [NoCLA]
Patch to spamd patch None John Horne [NoCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description John Horne 2002-05-30 15:47:04 UTC
Our mailhub runs spamassassin but it has no users. We can configure the MTA to
lookup users and read a value from a file. This value could be used as the users 
requested 'required_hits' value, and a command-line value would override any
system-wide value we set. At the present *all* users (i.e. all mail received for
our users) have to use the system-wide value. E.g. something like 'spamc -l 8'
to set a required_hits value of 8 for the users message the mta is currently
processing. The problem is some users will accept our system-wide value, others
will want it higher or lower. The option should be passed on to spamd.

More ambitious maybe is to use something like 'spamc -o required_hits=8', where
multiple -o options could be used to specify the various configuration options.
It may only be applicable to those options having a single value - numerical or
boolean.

Thanks

John.
Comment 1 John Horne 2002-06-06 09:49:22 UTC
Created attachment 148 [details]
Patch to spamc.c
Comment 2 John Horne 2002-06-06 09:52:09 UTC
Created attachment 149 [details]
Patch to spamd
Comment 3 Craig Hughes 2002-06-06 20:59:34 UTC
I don't think this is the right way of doing this -- better would be to use the SQL capabilities 
already in SA.  Nice to have the patch here though in case anyone else wants to do something similar.