autodaemon [was: mailbox classificataion]
Jake Di Toro
karrde at cox.net
Thu Jan 30 21:31:34 CET 2003
On Thu, Jan 30, 2003 at 03:17:57PM -0500, David Relson wrote:
> Remember that bogofilter has two modes - classifying messages and
> registering (training). Classifying expects to receive single messages,
> such as procmail feeds it. Registering has code to handle mbox formatted
> files so that 1 run of bogofilter can process many messages. Using formail
> to split a mbox into separate messages and feed them to bogofilter 1 at a
> time is much slower than giving bogofilter the whole mbox.
>
> As bogofilter is right now, it can process a mailbox quite quickly. The
> downside of that is that bogofilter needs special code to break the mailbox
> into pieces. This code is complex and hard to work with. At the moment it
> appears to work.
Ummmm, I double checked the licences before this but not the code.
Both bogofilter and formail/procmail are licenced under GPLv2, so why
not just use the code from formail directly. Either cut&paste and
make mods as necessary, or work a little to modularize the mailbox
splitting part of formail so it could be included as a library or
something. After all isn't that what OpenSource is supposed to be
about, NOT reinventing the wheel.
If I'm off base, sorry but this seems like a silly argument in the
end. If the library route is done, it could even be a choice to the
user at configure time.
--
Till Later,
Jake
More information about the Bogofilter
mailing list