[Spambayes] Outlook 2002

Cunningham, Andy acunningham at rsasecurity.com
Thu Mar 20 09:36:12 EST 2003


Mark

I tried out your change - in fact, I tried out several variants of newer
code, and in all of them I now seem to be getting a different error.  This
is based on the latest CVS build checked out at around 9AM GMT this morning,
though the same thing happens in the a2 release as well, now that I have
removed the source of the error (I traced the problem below to a moved .pst
file which hadn't been modified in outlook - so continuing the folder tree
walk on that error is probably a Good Thing.)




Traceback (most recent call last):
  File
"C:\andyc\Install\spambayes\spambayes\Outlook2000\dialogs\ManagerDialog.py",
line 97, in OnInitDialog
    self.UpdateControlStatus()
  File
"C:\andyc\Install\spambayes\spambayes\Outlook2000\dialogs\ManagerDialog.py",
line 143, in UpdateControlStatus
    watch_names = self.mgr.FormatFolderNames(
  File "C:\andyc\Install\spambayes\spambayes\Outlook2000\manager.py", line
222, in FormatFolderNames
    folder = self.message_store.GetFolder(eid)
  File "C:\andyc\Install\spambayes\spambayes\Outlook2000\msgstore.py", line
242, in GetFolder
    folder_id = self.NormalizeID(folder_id)
  File "C:\andyc\Install\spambayes\spambayes\Outlook2000\msgstore.py", line
195, in NormalizeID
    assert False, "We expect fully qualified IDs - second branch"
AssertionError: We expect fully qualified IDs - second branch
win32ui: OnInitDialog() virtual handler (<bound method
ManagerDialog.OnInitDialog of <dialogs.ManagerDialog.ManagerDialog instance
at 0x03141328>>) raised an exception
SpamAddin - Disconnecting from Outlook
Bayes database is not dirty - not writing
Addin terminating: 1 COM client and 2 COM servers exist.

The " - second branch" comment is where I modified the two identical assert
statements in NormaliseID so that I could tell which one was getting
triggered.  This is the second instance.  Commenting out the assertion seems
to allow everything to work properly, though I don't understand the code
well enough to ensure that I'm not storing problems up for later.....

AndyC 



-----Original Message-----
From: Mark Hammond [mailto:mhammond at skippinet.com.au] 
Sent: 17 March 2003 21:48
To: Cunningham, Andy; spambayes at python.org
Subject: RE: [Spambayes] Outlook 2002


>     msgstore = session.OpenMsgStore(0, eid, None, mapi.MDB_NO_MAIL |
> pywintypes.com_error: (-2147219968, 'OLE error 0x80040600', None, 
> None)

The error code for this is MAPI_E_CORRUPT_STORE, which doesn't sound good!

I have checked in a change so that any errors when walking the folder tree
are ignored.  However, this same error is going to happen, so that part of
your folder tree will *not* appear in the dialog.  Hopefully only a small
part of your tree is corrupt, so the folders you want will still be there -
you will have to try it and see.

Mark.



More information about the Spambayes mailing list