[Skip Montanaro]
> After my latest cvs up, timtest fails with
>
>     Traceback (most recent call last):
>       File "/home/skip/src/spambayes/timtest.py", line 294, in ?
>         drive(nsets)
>       File "/home/skip/src/spambayes/timtest.py", line 264, in drive
>         d = Driver()
>       File "/home/skip/src/spambayes/timtest.py", line 152, in __init__
>         self.global_ham_hist = Hist(options.nbuckets)
>     AttributeError: 'OptionsClass' object has no attribute 'nbuckets'
>
> I'm running it as
>
>     timtest -n5 > Data/timtest.out
>
> from my ~/Mail directory (not from my ~/src/spambayes directory).  If I
> create a symlink to ~/src/spambayes/bayes.ini it works once again, but
> shouldn't there be an nbuckets attribute with a default value already?
I never used ConfigParser before, but I read that its read() method silently
ignores files that don't exist.  If 'bayes.ini' isn't found, *none* of the
options will be defined.  Since you want to run this from a directory other
than my spambayes directory, it's up to you to check in changes to make that
possible <wink>.

[Tim]
> I never used ConfigParser before, but I read that its read()
> method silently ignores files that don't exist.  If 'bayes.ini'
> isn't found, *none* of the options will be defined. ...
Note that I since got rid of bayes.ini (it's embedded in Options.py
now), so search-path issues won't burn you here anymore.  The intended
way to customize the tokenizer and testers is via creating your own
bayescustomize.ini.  You'll get burned by search-path issues wrt that
instead now <0.7 wink>.

I've been running hammie on all my incoming messages, and I noticed that
multipart/alternative messages are totally hosed: they have no content,
just the MIME boundaries.  For instance, the following message:
X-Hammie-Disposition: No; 0.74; [unrelated gar removed]
I've fixed it with the following patch to Tim's tokenizer, but I have to
admit that I'm baffled as to why it works.  Maybe there's some subtle
interaction between generators and lists that I can't understand.  Or
something.  Being as I'm baffled, I don't imagine any theory I come up
In any case, be advised that (at least for me) hammie will eat
multipart/alternative messages until this patch is applied.  The patch
seems rather bogus though, so I'm not checking it in, in the hope that
there's a better fix I just wasn't capable of discovering :)
"""Module to tokenize email messages for spam filtering."""