[PATCH] bulkmode registration

Matthias Andree matthias.andree at gmx.de
Wed May 7 02:43:08 CEST 2003


David Relson <relson at osagesoftware.com> writes:

> With the attached patch, bogofilter passes "make check" as well as a
> cursory test (27 messages, registered via "bogofilter -s -b -v < list -d
> dir").  The code is believed to work, though it hasn't been stress tested.

As a medium-to-long term thought:

I wonder if we should really consider splitting bogofilter into a
backend that has low-level functions (will be akin to a library) and a
frontend that does message-splitting, option parsing and all that. The
backend would be shared by bogoutil and bogofilter as some parts of it
are now, and we could separate out the front-ends.

Front-ends would be separated by their purpose. I don't necessarily plan
to map every mode into a distinct file, but combining a "fetcher" module
from a set of several (maildir, mbox, single_mail) with a "parser" and a
"driver" module (that evaluates or registers) or something might work.

This is raw, not well thought-out and we need to find what a useful
separation would be. After that, we'd need to define the
interfaces. I've wondered if we should make at least the "evaluate if
spam or no" mode easily accessible from other applications.

This is nothing for short notice, if we don't plan where we cut and the
interfaces, we can just drop this idea.

-- 
Matthias Andree




More information about the bogofilter-dev mailing list