gyepi at praxis-sw.com
Mon Sep 16 14:34:23 EDT 2002
On Mon, Sep 16, 2002 at 12:54:20PM -0500, Eric Seppanen wrote:
> Couldn't we eliminate a lot of code by ditching the .count files and just
> record the message count as a value in the db file? It should be
> easy to create a magic key that can't collide with any words (by using
> uppercase letters or nonprintable characters).
I am planning to do just that, but not quite the same way.
A db file can actually hold multiple named databases, so I was planning to use a single db file for all the
lists and their counts.
Each list would have two named databases, one for the list proper, the other for the counts.
This would have the benefits of:
1. Not needing multiple files in the ~/.bogofilter directory, which we may even want to replace with
a ~/.bogofilter.db file.
2. Make it easier to create multple lists; there are just databases in a file.
Obviously, this makes the database more opaque, but we can change bogodump() to handle it.
Nothing is really work unless you would rather be doing something else.
-- James M. Barrie
More information about the Bogofilter-dev