offlineimap rev 485

"Automatic Subversion Change Mailer" <[email protected]> Thu, 26 Jun 2003 13:29:28 -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-26 13:28:54 -0500 (Thu, 26 Jun 2003)
New Revision: 485

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

Log:
  * Applied patch from Joerg Wendland <[email protected]> to use
    APPENDUID result from mail servers that provide it.  Closes: #198772.

Resolves: [debian.org #198772]


Diff:
Modified: offlineimap/head/debian/changelog
==============================================================================
--- offlineimap/head/debian/changelog	(original)
+++ offlineimap/head/debian/changelog	2003-06-26 13:29:23.000000000 -0500
@@ -4,6 +4,8 @@
     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().
+  * Applied patch from Joerg Wendland <[email protected]> to use
+    APPENDUID result from mail servers that provide it.  Closes: #198772.
 
  -- John Goerzen <[email protected]>  Mon,  2 Jun 2003 07:04:53 -0500
 

Modified: offlineimap/head/offlineimap/folder/IMAP.py
==============================================================================
--- offlineimap/head/offlineimap/folder/IMAP.py	(original)
+++ offlineimap/head/offlineimap/folder/IMAP.py	2003-06-26 13:29:24.000000000 -0500
@@ -142,6 +142,9 @@
         return leader + newline + trailer
 
     def savemessage_searchforheader(self, imapobj, headername, headervalue):
+        if imapobj.untagged_responses.has_key('APPENDUID'):
+            return long(imapobj.untagged_responses['APPENDUID'][0].split(' ')[1])
+
         ui = UIBase.getglobalui()
         ui.debug('imap', 'savemessage_searchforheader called for %s: %s' % \
                  (headername, headervalue))