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:
parent
944209b858
commit
440ee1708d
@ -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' % \
|
||||
|
Loading…
Reference in New Issue
Block a user