[Spambayes] Storing Options [was Outlook feature request]

Skip Montanaro skip at pobox.com
Wed Feb 26 16:44:27 EST 2003


    Mark> First, a little history: when I picked up spambayes, it indirectly
    Mark> used the Python ConfigParser module for options.  This module
    Mark> handles "ini files on steriods", and is quite nice - except that
    Mark> the module does not support *writing* to the file.

That's why it's called "Config *Parser*".  It parses files.  You want the
ConfigWriter module, which I'm afraid doesn't exist.  Even if it did, you'd
have the problem that the current options file flattens out the option
hierarchy a bit, so that it's not

    Options.options.Tokenizer.basic_header_tokenize

but

    Options.options.basic_header_tokenize

To feed the current options to some sort of config file writer you'd
probably have to correct that.

Skip



More information about the Spambayes mailing list