<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=403472718-14092006>Hi 
list,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403472718-14092006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=403472718-14092006>Following from the 
"Spambayes crashes my Outlook" thread, I thought I would post more details 
on&nbsp;my experience with a similar Outlook crash / crippled Outlook issue 
which I was able to workaround with a small change in source.&nbsp; This problem 
occurs in Outlook 2000 and 2003 (maybe others), with CommuniGate&nbsp;MAPI 
Intel&nbsp;1.2.1, 1.2.2</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403472718-14092006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=403472718-14092006>Problem:&nbsp; 
</SPAN></FONT><FONT face=Arial size=2><SPAN class=403472718-14092006>SpamBayes' 
logic on&nbsp;startup of the&nbsp;configuration&nbsp;wizard&nbsp;is to loop 
through all entries in the Message Stores Table, then ask each one for a receive 
folder (ie Inbox).&nbsp; The Communigate MAPI connector&nbsp;returns multiple 
entries from this call, the first of which responds with the proper "Inbox" 
folder when asked for the Receive Folder.&nbsp; It then causes an access 
violation when the next store entry is asked for it's Receive Folder.&nbsp; Not 
sure why a second store entry even exists.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403472718-14092006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=403472718-14092006>Workaround:&nbsp; 
Modify a single line of code to eliminate the multi-store loop.&nbsp; The 
assumption here is that you only need one store (probably true if you're running 
a CommuniGate server).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403472718-14092006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=403472718-14092006>Source file:&nbsp; 
spambayes/Outlook2000/msgstore.py</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=403472718-14092006>In the 
YieldReceiveFolders function, comment out the "for row in rows:" line and 
replace with "if True:"</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403472718-14092006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=403472718-14092006>Thanks to the well 
written code by the contributors, and&nbsp;good development documentation, this 
did not take long to find, modify, and re-package for our internal 
needs.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403472718-14092006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=403472718-14092006>If someone is so 
inclined to work a permanent solution around this&nbsp;such as an installation 
option to only allow a single message store, or to coach me on how to do this 
quickly, it may help others with other similar Outlook environment 
issues.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=403472718-14092006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=403472718-14092006>thanks, 
Roland;</DIV>
<DIV>&nbsp;</DIV></SPAN></FONT></BODY></HTML>