[Spambayes] Sharing databases between outlook plugin and proxy

Tony Meyer tameyer at ihug.co.nz
Tue Mar 8 03:54:39 CET 2005


> However, I'm using this at work with an exchange server,
> and have recently started using Mozilla Thunderbird on the
> same machine for my personal email using POP3 and SMTP, so
> I've installed the proxy as well.
> The default setup of the proxy has a different database name
> (hammie.db), and message information file name
> (spambayes.messageinfo.db) than the outlook plugin
> (default_bayes_database.db and default_message_database.db),
> and they both reside in different folders.
> My question is, can the proxy and outlook plugin share the same
> databases and run concurrently? 

With 1.0.x and 1.1 the (token count) databases (hammie.db,
default_bayes_database.db) are in the same format, and can be shared or
swapped for each other.  With 1.0.x the message info databases
(spambayes.messageinfo.db, default_message_database.db) use very different
formats, and cannot be shared (they can be in the forthcoming 1.1).
However, there's very little value in sharing the message info databases
anyway, since they track individual messages in the mailer, which isn't
relevant when there are multiple mailers involved.

> The only way I can see to do this is to change my 
> .\application data\spambayes\outlook.ini to set the data
> directory to the .\application Data\SpamBayes\Proxy folder,
> and change the database names in the proxy interface to the
> outlook plugin names.

Or you can just change the database names in the proxy interface to full
paths, e.g. 'C:\Documents and Settings\{username}\Application
Data\SpamBayes\default_bayes_database.db' instead of simply 'hammie.db'
('..\default_bayes_database.db' would probably also work, although I haven't
checked).

> Are these databases different for a reason, or can I go ahead and do this?


You can share the token database, but you do not want to be writing to it
from two places at the same place (a sure road to a corrupted database).  If
you do all your training from Outlook *or* sb_server (but not both) then you
should be ok, I think (although the other application won't have the updated
database until it is restarted).

=Tony.Meyer

-- 
Please always include the list (spambayes at python.org) in your replies
(reply-all), and please don't send me personal mail about SpamBayes.
http://www.massey.ac.nz/~tameyer/writing/reply_all.html explains this.



More information about the Spambayes mailing list