Attempt to fix problem with getting back the wrong UID from APPENDUID

Keywords: 


(jgoerzen@complete.org--projects/offlineimap--head--1.0--patch-1)
This commit is contained in:
John Goerzen 2004-10-18 20:00:29 +01:00
parent 944209b858
commit 440ee1708d

View File

@ -150,7 +150,7 @@ class IMAPFolder(BaseFolder):
def savemessage_searchforheader(self, imapobj, headername, headervalue):
if imapobj.untagged_responses.has_key('APPENDUID'):
return long(imapobj.untagged_responses['APPENDUID'][0].split(' ')[1])
return long(imapobj.untagged_responses['APPENDUID'][-1].split(' ')[1])
ui = UIBase.getglobalui()
ui.debug('imap', 'savemessage_searchforheader called for %s: %s' % \