Theo Van Dinter wrote:
> Been looking at things a little more: read_scoreonly_config() does
> more than scores... it's scores, whitelists, blacklists, version tags,
> required_hits, rewrite_header, etc. Basically anything the users are
> allowed to change.
Yeah, I got that far too - the 'scoreonly' bit seems to be a slight
misnomer :-(
> 2) somehow make a complete duplicate of $m->{conf} values. something
> like:
>
> $m = new Mail::SpamAssassin(...);
> $conf = $m->backup_config();
> ... do stuff ...
> $m->restore_config($conf);
> $m->read_scoreonly_config(...);
Which is pretty close to the kind of behaviour I was expecting.
> Doing a little research, looks like Storable::freeze()/thaw() might make
> a good backup/restore utility, but I'll have to look into it some more.
I'd be very interested to see what you can work out.
/Per Jessen, Zurich