is there any way to set the directory for the user's spamassassin directory from the command line for sa-learn? I know that I can set the location of the user's preferences file (with -p), or the system wide config directory (with -C) ... but what I want is sort of a crossing of the two.


(users wont be directly accessing things, and I don't want to waste space on individual prefs files that specify the locations in their options; I'd rather just be able to set the location of the AWL and Bayes databases from the sa-learn command line)

Is there a way to do that? Will that effectively happen if I give a directory, instead of a file, to the -p option? If I do that, will it also build a user prefs file for them in the same directory (which I don't want)?

It might also be nice to have -O cli argument that lets you set config options on the command line (for both spamassassin and sa-learn), like:

sa-learn -O option1=value1 -O option2=value2 --file $MESSAGE

That would allow this type of thing to be done in a general way.

(btw: I'm still running 2.50, so if this has been solved by a more recent version, please just let me know which minimum version I need to upgrade to)



Reply via email to