bogofilter's mode
David Relson
relson at osagesoftware.com
Sat Oct 12 00:36:18 CEST 2002
Gyepi,
I think making run_type a global variable is good. bogofilter() needs it
so it call call register_words(),if appropriate, and setup_lists() can use
it to determine the mode for db_open(). Look for it soon in a cvs
repository near you.
David
At 06:23 PM 10/11/02, Gyepi SAM wrote:
>On Fri, Oct 11, 2002 at 05:28:03PM -0400, David Relson wrote:
>
> > By adding RUN_UPDATE to the list of types and using it instead of a
> > separate 'update' flag, the choice of mode for opening the database
> becomes
> > simpler than before.
>
>True.
>
> > Alternately, I'm having a really bad day and am misunderstanding
> everything
> > I do. Did I get _this_ one right?
>
>Yes, except the run mode must now be propagated into bogofilter() so it
>can test it and
>call register_words() if necessary.
>
>Alternately, we can make register_type a global variable and have bogofilter()
>test it instead of 'update'. This would also reduce the number of arguments
>that get passed to setup_lists() [I think that's the correct name].
>register_words() however, would still need
>to maintain its run_t argument, however, since its value depends on who
>calls it.
>
>Hope your day improves. ;)
>
>-Gyepi
>
>--
>When you are courting a nice girl an hour seems like a second.
>When you sit on a red-hot cinder a second seems like an hour. That's
>relativity.
> --Albert Einstein
More information about the bogofilter-dev
mailing list