[Spambayes] No Defined Boundary
tameyer at ihug.co.nz
Mon Aug 9 02:56:52 CEST 2004
> Suddenly, I'm getting bunches of "multipart message[s] with no defined
> boundary." They don't show a Classification Header or Spam
> Probability, so my system treats them as ham.
Perhaps you could treat any mail with a "X-SpamBayes-Exception" header as
unsure? (ham is much less likely to be malformed, IMO).
> A sampling of the others shows the same exception language.
We do have some code to try and work around malformed messages, but the
problem is that there are simply too many ways that a message can be
malformed, and it's not really worth adding code for all of these unless
they are really common.
Of course, if anyone submits a patch... <wink>
The good news (and the main reason why it's not worth doing the above) is
that Python 2.4's email package handles all of this for us - not only is it
much, much better at handling malformed messages correctly, but it also
catches any problems and does what it can to present the message. So anyone
using the SpamBayes source with Python 2.4+ will be fine, and when we start
building the binaries with Python 2.4, all those users will also be fine. I
would think that the first 1.1 release will use Python 2.4 (a few months
off, I would think).
> BTW, have you considered forcing the logs and databases and
> ini file and other proxy info into a single place, rather than leaving
> them hidden in a dark maze of little twisty passages or a maze
> of dark twisty little passages or whatever it was that you encountered
> in the original Caverns?
By default, the ini file, databases and cache directories are all located in
the same directory. The only files that aren't are the logs - because these
are temporary files, they're stored in the temp directory (this is, AFAIK,
the correct behaviour with Windows). We could possibly add a way to display
the current log from the web interface (somewhat like the Outlook plug-in
can do) if that would make things easier. (If you use the 'submit bug
report' ability of the web interface, then it does attach the log for you).
Please always include the list (spambayes at python.org) in your replies
(reply-all), and please don't send me personal mail about SpamBayes. This
way, you get everyone's help, and avoid a lack of replies when I'm busy.
More information about the Spambayes