repository: IMAP.py: do not redefine string
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
14de280585
commit
c2b8a99fa2
@ -326,13 +326,13 @@ class IMAPRepository(BaseRepository):
|
||||
listresult = listfunction(directory = self.imapserver.reference)[1]
|
||||
finally:
|
||||
self.imapserver.releaseconnection(imapobj)
|
||||
for string in listresult:
|
||||
if string == None or \
|
||||
(isinstance(string, basestring) and string == ''):
|
||||
for s in listresult:
|
||||
if s == None or \
|
||||
(isinstance(s, basestring) and s == ''):
|
||||
# Bug in imaplib: empty strings in results from
|
||||
# literals. TODO: still relevant?
|
||||
continue
|
||||
flags, delim, name = imaputil.imapsplit(string)
|
||||
flags, delim, name = imaputil.imapsplit(s)
|
||||
flaglist = [x.lower() for x in imaputil.flagsplit(flags)]
|
||||
if '\\noselect' in flaglist:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user