[Spambayes-checkins] spambayes/Outlook2000/sandbox mapi_driver.py,
1.5, 1.6
Tony Meyer
anadelonbrin at users.sourceforge.net
Wed Dec 3 23:29:49 EST 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000/sandbox
In directory sc8-pr-cvs1:/tmp/cvs-serv16818/Outlook2000/sandbox
Modified Files:
mapi_driver.py
Log Message:
If the *first* name returned wasn't the default store, then dump_props
would say that there wasn't one. Fix that.
Index: mapi_driver.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/sandbox/mapi_driver.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** mapi_driver.py 1 Sep 2003 05:36:34 -0000 1.5
--- mapi_driver.py 4 Dec 2003 04:29:47 -0000 1.6
***************
*** 81,90 ****
names = [n.lower() for n in name.split("\\")]
if names[0]:
for store, name, is_default in self.GetMessageStores():
if is_default:
store_name = name.lower()
break
! else:
! raise RuntimeError, "Can't find a default message store"
folder_names = names
else:
--- 81,91 ----
names = [n.lower() for n in name.split("\\")]
if names[0]:
+ store_name = None
for store, name, is_default in self.GetMessageStores():
if is_default:
store_name = name.lower()
break
! if store_name is None:
! raise RuntimeError, "Can't find a default message store"
folder_names = names
else:
More information about the Spambayes-checkins
mailing list