offlineimap rev 484

"Automatic Subversion Change Mailer" <[email protected]> Mon, 2 Jun 2003 11:17:42 -0500 (CDT)
Newsgroups gmane.mail.imap.offlineimap.subversion
Message-ID <[email protected]>
You are receiving this message because
all commits get sent to this address.

Author: jgoerzen
Date: 2003-06-02 11:17:29 -0500 (Mon, 02 Jun 2003)
New Revision: 484

Modified:
  offlineimap/head/debian/changelog
  offlineimap/head/offlineimap/imapserver.py
  offlineimap/head/offlineimap/folder/IMAP.py

Log:
  * Added a "force" option to imapserver/select to force a reloading of a
    folder.  Per [complete.org #67], when cachemessagelist() was called
    on an object that was cached from a previous run, it would not
    re-issue the select().

Closes: [complete.org #67]


Diff:
Modified: offlineimap/head/debian/changelog
==============================================================================
--- offlineimap/head/debian/changelog	(original)
+++ offlineimap/head/debian/changelog	2003-06-02 11:17:41.000000000 -0500
@@ -1,3 +1,12 @@
+offlineimap (3.99.19) unstable; urgency=low
+
+  * Added a "force" option to imapserver/select to force a reloading of a
+    folder.  Per [complete.org #67], when cachemessagelist() was called
+    on an object that was cached from a previous run, it would not
+    re-issue the select().
+
+ -- John Goerzen <[email protected]>  Mon,  2 Jun 2003 07:04:53 -0500
+
 offlineimap (3.99.18) unstable; urgency=low
 
   * Made a fix for Python2.3 compatibility.

Modified: offlineimap/head/offlineimap/imapserver.py
==============================================================================
--- offlineimap/head/offlineimap/imapserver.py	(original)
+++ offlineimap/head/offlineimap/imapserver.py	2003-06-02 11:17:41.000000000 -0500
@@ -30,8 +30,8 @@
             return self.selectedfolder
         return None
 
-    def select(self, mailbox='INBOX', readonly=None):
-        if self.getselectedfolder() == mailbox:
+    def select(self, mailbox='INBOX', readonly=None, force = 0):
+        if (not force) and self.getselectedfolder() == mailbox:
             self.is_readonly = readonly
             # No change; return.
             return

Modified: offlineimap/head/offlineimap/folder/IMAP.py
==============================================================================
--- offlineimap/head/offlineimap/folder/IMAP.py	(original)
+++ offlineimap/head/offlineimap/folder/IMAP.py	2003-06-02 11:17:41.000000000 -0500
@@ -69,7 +69,7 @@
 
         try:
             # Primes untagged_responses
-            imapobj.select(self.getfullname(), readonly = 1)
+            imapobj.select(self.getfullname(), readonly = 1, force = 1)
             try:
                 # Some mail servers do not return an EXISTS response if
                 # the folder is empty.