[Spambayes-checkins] spambayes/Outlook2000 msgstore.py,1.3,1.4

Mark Hammond mhammond@users.sourceforge.net
Thu, 24 Oct 2002 18:16:23 -0700


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory usw-pr-cvs1:/tmp/cvs-serv7277

Modified Files:
	msgstore.py 
Log Message:
Was trying to be too clever :(  Python's MAPI didn't do the 
Py_True/Py_False thing, hence MAPI bools came back as 0/-1.
Fixed in win32all sources, but this makes it work everywhere.


Index: msgstore.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/msgstore.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** msgstore.py	25 Oct 2002 00:52:57 -0000	1.3
--- msgstore.py	25 Oct 2002 01:16:21 -0000	1.4
***************
*** 208,212 ****
  
      def __repr__(self):
!         urs = ["read", "unread"][self.unread]
          return "<%s, (%s) id=%s>" % (self.__class__.__name__, urs, mapi.HexFromBin(self.id))
  
--- 208,215 ----
  
      def __repr__(self):
!         if self.unread:
!             urs = "read"
!         else:
!             urs = "unread"
          return "<%s, (%s) id=%s>" % (self.__class__.__name__, urs, mapi.HexFromBin(self.id))