[Spambayes-checkins] spambayes/Outlook2000 msgstore.py,1.67,1.68

Mark Hammond mhammond at users.sourceforge.net
Tue Aug 26 02:03:01 EDT 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv1490

Modified Files:
	msgstore.py 
Log Message:
Fix [ 779319 ] ntpath Unicode error
Return the profile name as a Unicode object, rather than as a string with
invalid ascii characters.


Index: msgstore.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/msgstore.py,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** msgstore.py	26 Aug 2003 06:01:46 -0000	1.67
--- msgstore.py	26 Aug 2003 08:02:59 -0000	1.68
***************
*** 186,190 ****
          assert len(rows)==1, "Should be exactly one row"
          (tag, val), = rows[0]
!         return val
  
      def _GetMessageStore(self, store_eid): # bin eid.
--- 186,192 ----
          assert len(rows)==1, "Should be exactly one row"
          (tag, val), = rows[0]
!         # I can't convince MAPI to give me the Unicode name, so we assume
!         # encoded as MBCS.
!         return val.decode("mbcs", "ignore")
  
      def _GetMessageStore(self, store_eid): # bin eid.





More information about the Spambayes-checkins mailing list