Bug 7434 - add --siteconfigpath option
Summary: add --siteconfigpath option
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: sa-update (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: All All
: P2 enhancement
Target Milestone: Future
Assignee: SpamAssassin Developer Mailing List
Depends on:
Reported: 2017-06-09 23:08 UTC by js
Modified: 2022-04-11 13:16 UTC (History)
3 users (show)

Attachment Type Modified Status Actions Submitter/CLA Status
add --siteconfigpath option patch None js@lastlog.de [NoCLA]
add --siteconfigpath option patch None js@lastlog.de [NoCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description js 2017-06-09 23:08:06 UTC
Created attachment 5445 [details]
add --siteconfigpath option


i've implemented and tested the `sa-update` patch on adding a --siteconfigpath option as there exists one for spamd.

the motivation is simple: spamd can operated with a custom configuration /my/custom/config location so it does not require a /etc/spamassassin global configuration.

this patch makes sa-update capable of parsing my configuration from /my/custom/config location instead.

this is a nice feature on its own but it is vital on nixos since there i can store different revisions of the configuration in the so called nix store. that said, i can easily switch between configurations. but the output of `sa-update`, written to /var/lib/spamasassin in my case, is still a global setting of rules.

but this is, as often, just a first step ;-)

please apply this patch if it looks correct. 

thanks, joachim
Comment 1 js 2017-06-09 23:09:19 UTC
the PR for spamassassin as a daemon is here:

Comment 2 js 2017-06-10 07:22:07 UTC
Created attachment 5446 [details]
add --siteconfigpath option

adding some help on the console
Comment 3 Kevin A. McGrail 2018-08-28 03:56:56 UTC
JS, I like this idea but I think it's on the edge of non-trivial.  Can you please submit an ICLA https://www.apache.org/licenses/icla.pdf ?

If you do it quickly, I can likely push this into SA 3.4.2!
Comment 4 Kevin A. McGrail 2018-09-04 14:37:37 UTC
No cla, pushing to 3.4.3
Comment 5 Henrik Krohns 2019-06-15 20:07:44 UTC
Needs a little bit more thought I think, LOCAL_RULES_DIR is in many places including some channel macro replacements, no time to look for 3.4.3.
Comment 6 Henrik Krohns 2022-04-11 13:16:40 UTC
Probably no time to look for 4.0.0, postponing into future.