[Spambayes] How to reclassify Eudora mbx?
Paul Denning
pauld at mitre.org
Thu Jan 12 17:44:05 CET 2006
See below.
Paul
At 05:54 PM 2006-01-11, Tony Meyer wrote:
>>I would like to take before.mbx and feed it through spambayes to copy
>>each message into after.mbx, where after.mbx has the new
>>classification (spam, ham, unsure) in the email header and before.mbx
>>is left alone (read only).
>>
>>before.mbx would have email headers "X-Spambayes-Classification:
>>unsure"
>>after.mbx would have email headers "X-Spambayes-Classification: ham"
>>or spam, and a lot fewer unsure.
>>
>>I don't really care if X-Spambayes-MailId: is changed.
>>
>>How can I do this?
>
>You will need the source. I believe you can use sb_filter to do
>this, with something like:
>
> python sb_filter.py before.mbx > after.mbx
>
>=Tony.Meyer
I set the BAYESCUSTOMIZE environment variable to point to the same
.ini file that is used by the Windows service; i.e.,
BAYESCUSTOMIZE="C:\Documents and Settings\LocalService\Application
Data\SpamBayes\Proxy\bayescustomize.ini"
I get the following error; any suggestions?
Traceback (most recent call last):
File "D:\apps\python\Scripts\sb_filter.py", line 257, in ?
main()
File "D:\apps\python\Scripts\sb_filter.py", line 248, in main
action(msg)
File "D:\apps\python\Scripts\sb_filter.py", line 179, in filter
self.open('r')
File "D:\apps\python\Scripts\sb_filter.py", line 163, in open
self.h = hammie.open(self.dbname, self.usedb, self.mode)
File "d:\apps\python\Lib\site-packages\spambayes\hammie.py", line
267, in open
return Hammie(storage.open_storage(filename, useDB, mode))
File "d:\apps\python\Lib\site-packages\spambayes\storage.py", line
708, in ope
n_storage
return klass(data_source_name, mode)
File "d:\apps\python\Lib\site-packages\spambayes\storage.py", line
187, in __i
nit__
self.load()
File "d:\apps\python\Lib\site-packages\spambayes\storage.py", line
212, in loa
d
self.dbm = dbmstorage.open(self.db_name, self.mode)
File "d:\apps\python\Lib\site-packages\spambayes\dbmstorage.py",
line 65, in o
pen
return f(db_name, mode)
File "d:\apps\python\Lib\site-packages\spambayes\dbmstorage.py",
line 38, in o
pen_best
return f(*args)
File "d:\apps\python\Lib\site-packages\spambayes\dbmstorage.py",
line 20, in o
pen_dbhash
return bsddb.hashopen(*args)
File "d:\apps\python\lib\bsddb\__init__.py", line 293, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb._db.DBNoSuchFileError: (2, 'No such file or directory')
Paul
More information about the SpamBayes
mailing list