"-Q" output as config file [was ... ]
David Relson
relson at osagesoftware.com
Wed Mar 3 17:38:48 CET 2004
On 03 Mar 2004 09:20:50 -0500
Tom Anderson wrote:
...[snip]...
> > I always found -Q listed too much. Now thinking about it, I
> > think it should print the complete configuration. Best would
> > be to do it in a form which is a correct config file. This
> > would, e.g., require to write the line with the version
> > number after a #.
>
> Good idea. I like the idea of a valid config file output.
>
> BTW, I would really love if at least spam_subject_tag and
> unsure_subject_tag could be included. I don't know if bogofilter
> already strips those out during registration or not, but I do it in
> bfproxy based on default values for these. Having the correct values
> would be better.
The attached patch includes all config file options in the '-Q' output
and formats them for use as a config file.
I've tested with:
bogofilter -Q > f1
bogofilter -c f1 -Q > f2
diff -s f1 f2
which gives
Files f1 and f2 are identical
Enjoy.
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.0303.Q
Type: application/octet-stream
Size: 4522 bytes
Desc: not available
URL: <http://www.bogofilter.org/pipermail/bogofilter/attachments/20040303/f553bdb0/attachment.obj>
More information about the Bogofilter
mailing list