[Spambayes-checkins] spambayes/scripts sb_pop3dnd.py,1.6,1.7

Tony Meyer anadelonbrin at users.sourceforge.net
Mon Jan 12 03:43:57 EST 2004


Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv22580/scripts

Modified Files:
	sb_pop3dnd.py 
Log Message:
Store the IMAP flags.

Fix an incorrectly loaded flag (typo).

Index: sb_pop3dnd.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_pop3dnd.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** sb_pop3dnd.py	31 Dec 2003 02:59:51 -0000	1.6
--- sb_pop3dnd.py	12 Jan 2004 08:43:55 -0000	1.7
***************
*** 62,69 ****
  
  todo = """
-  o Message flags are currently not persisted, but should be.  The
-    IMAPFileMessage class should be extended to do this.  The same
-    goes for the 'internaldate' of the message.  These could be put
-    in the message info database, no doubt.
   o The RECENT flag should be unset at some point, but when?  The
     RFC says that a message is recent if this is the first session
--- 62,65 ----
***************
*** 92,96 ****
  """
  
! # This module is part of the spambayes project, which is Copyright 2002-3
  # The Python Software Foundation and is covered by the Python Software
  # Foundation license.
--- 88,92 ----
  """
  
! # This module is part of the spambayes project, which is Copyright 2002-4
  # The Python Software Foundation and is covered by the Python Software
  # Foundation license.
***************
*** 159,162 ****
--- 155,163 ----
      def __init__(self, date):
          message.Message.__init__(self)
+         # We want to persist more information than the generic
+         # Message class.
+         self.stored_attributes.extend(["date", "deleted", "flagged",
+                                        "seen", "draft", "recent",
+                                        "answered"])
          self.date = date
          self.clear_flags()
***************
*** 186,190 ****
          if self.draft:
              yield "\\DRAFT"
!         if self.draft:
              yield "\\RECENT"
  
--- 187,191 ----
          if self.draft:
              yield "\\DRAFT"
!         if self.recent:
              yield "\\RECENT"
  





More information about the Spambayes-checkins mailing list