BUG: behavior of fetch now only returns a single entry, the use of

data[0][0] here is a carry over from the old behavior of offlineimap
(python2)
This commit is contained in:
Joseph Ishac 2021-02-22 23:27:45 -05:00
parent 3166723baa
commit 5fc08e529b

View File

@ -76,7 +76,7 @@ class GmailFolder(IMAPFolder):
# Embed the labels into the message headers # Embed the labels into the message headers
if self.synclabels: if self.synclabels:
m = re.search('X-GM-LABELS\s*[(](.*)[)]', data[0][0]) m = re.search('X-GM-LABELS\s*[(](.*)[)]', data[0])
if m: if m:
labels = set([imaputil.dequote(lb) for lb in imaputil.imapsplit(m.group(1))]) labels = set([imaputil.dequote(lb) for lb in imaputil.imapsplit(m.group(1))])
else: else: