[spambayes-dev] Bug found in latest CVS.

DUI-DWI brown at dui-dwi.com
Tue Nov 16 11:37:29 CET 2004


First off, great job on all of the check ins as of late.  I've found a bug
in the latest cvs, however.  When you try and get the spam clues to a
message that was trained prior, nothing happens.  Details below.  Let me
know if you need any more info.


Traceback (most recent call last):
  File "D:\!PROGR~1\PYTHON\Lib\site-packages\win32com\server\policy.py",
line 283, in _Invoke_
    return self._invoke_(dispid, lcid, wFlags, args)
  File "D:\!PROGR~1\PYTHON\Lib\site-packages\win32com\server\policy.py",
line 288, in _invoke_
    return S_OK, -1, self._invokeex_(dispid, lcid, wFlags, args, None, None)
  File "D:\!PROGR~1\PYTHON\Lib\site-packages\win32com\server\policy.py",
line 581, in _invokeex_
    return func(*args)
  File "D:\!Programs\SpamBayes for Outlook\spambayes\Outlook2000\addin.py",
line 237, in OnClick
  File "D:\!Programs\SpamBayes for Outlook\spambayes\Outlook2000\addin.py",
line 482, in ShowClues
    push("This message has %sbeen trained%s." % \
exceptions.KeyError: '1'



-----Original Message-----
From: spambayes-dev-bounces at python.org
[mailto:spambayes-dev-bounces at python.org] On Behalf Of Tony Meyer
Sent: Sunday, November 14, 2004 7:33 PM
To: 'sean darcy'; spambayes-dev at python.org
Subject: RE: [spambayes-dev] deprecation warniing with python-2.4

> Using CVS from about Nov 1.
> /usr/lib/python2.4/email/__init__.py:43: DeprecationWarning: 'strict' 
> argument i s deprecated (and ignored)
>   return Parser(*args, **kws).parsestr(s)

Yes, Barry deprecated the 'strict' keyword arg in the email package (given
the new FeedParser system, it's presumably reasonably worthless in email

On the 9th, I tidied up some of the code, so I think sb_server and
sb_imapfilter will manage to avoid this warning if you cvs-up.  I don't
recall where offhand, but I believe there's still at least one case of using
strict left - that one might be trickier, although since it defaulted to
False (IIRC) and False is (again, IIRC) what we want, it might not be too

If you want to root out any remaining uses and post a bug/patch to SF, go
ahead!  You can assign it to me (Anadelonbrin) if you like.

By the time 1.1a1 is released that source should work without any warnings
from Python 2.4.  1.0.1 should work with Python 2.4, but might still raise
the warnings (they're only warnings after all - and the 1.0.x branch will
probably be dead before Python 2.5).


spambayes-dev mailing list
spambayes-dev at python.org

More information about the spambayes-dev mailing list