[Spambayes] "delete as spam" gives error in Outlook XP

Chris Lopes clopes at yahoo.com
Fri Feb 28 22:51:59 EST 2003


I am running Outlook 2002 SP-2 on Windows XP Pro SP1.
I have spambayes 1.0a2 installed, along with python.org's python 2.2.2 with win32all-150
In order to install the add-in for outlook, I just ran addin.py from spambayes' outlook2000
directory. The plugin installed fine, and I was able to train spambayes on a set of both spam and
non-spam emails just fine.

However, "Delete As Spam" does not work. It gives the following error visible from
PythonWin's Trace Collector Debugging Tool when I click "Delete As Spam":
pythoncom error: Python error invoking COM method.
Traceback (most recent call last):
  File "D:\Python22\lib\site-packages\win32com\server\policy.py", line 275, in _Invoke_
    return self._invoke_(dispid, lcid, wFlags, args)
  File "D:\Python22\lib\site-packages\win32com\server\policy.py", line 280, in _invoke_
    return S_OK, -1, self._invokeex_(dispid, lcid, wFlags, args, None, None)
  File "D:\Python22\lib\site-packages\win32com\server\policy.py", line 510, in _invokeex_
    return apply(func, args)
  File "D:\spambayes-1.0a2\Outlook2000\addin.py", line 305, in OnClick
    spam_folder = msgstore.GetFolder(spam_folder_id)
  File "D:\spambayes-1.0a2\Outlook2000\msgstore.py", line 223, in GetFolder
    folder_id = self.NormalizeID(folder_id)
  File "D:\spambayes-1.0a2\Outlook2000\msgstore.py", line 185, in NormalizeID
    assert type(item_id) in [type(''), type(u'')], "What kind of ID is '%r'?" % (item_id,)
exceptions.AssertionError: What kind of ID is 'None'?

Please help

Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more

More information about the Spambayes mailing list