[Spambayes-checkins] spambayes/Outlook2000 addin.py,1.126,1.127

Mark Hammond mhammond at users.sourceforge.net
Sun Feb 8 22:59:27 EST 2004


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28367

Modified Files:
	addin.py 
Log Message:
A new error message would popup way too often once the error happened.
Switch to using ReportErrorOnce.  Also change the text to make it wrap
in the dialog better, and be more generic.


Index: addin.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/addin.py,v
retrieving revision 1.126
retrieving revision 1.127
diff -C2 -d -r1.126 -r1.127
*** addin.py	5 Feb 2004 08:40:22 -0000	1.126
--- addin.py	9 Feb 2004 03:59:24 -0000	1.127
***************
*** 1102,1110 ****
              except:
                  print "Error finding the MAPI folders for a folder switch event"
!                 self.manager.ReportError("You must configure the Possible Spam/Spam folder\n" \
!                                          "(Maybe you deleted the folder, rather than " \
!                                          "the items in it?  If so, create a new folder " \
!                                          "and use the Manager to select it)",
!                                          "Invalid Configuration")
                  traceback.print_exc()
          if self.but_recover_as is not None:
--- 1102,1112 ----
              except:
                  print "Error finding the MAPI folders for a folder switch event"
!                 # As this happens once per move, we should only display it once.
!                 self.manager.ReportErrorOnce(
!                     "There appears to be a problem with the SpamBayes"
!                     " configuration\r\n\r\nPlease select the SpamBayes"
!                     " manager, and run the\r\nConfiguration Wizard to"
!                     " reconfigure the filter.",
!                     "Invalid SpamBayes Configuration")
                  traceback.print_exc()
          if self.but_recover_as is not None:




More information about the Spambayes-checkins mailing list