From 5fc08e529b651aa0c0153ca3e2b4404b8f6d5b66 Mon Sep 17 00:00:00 2001 From: Joseph Ishac Date: Mon, 22 Feb 2021 23:27:45 -0500 Subject: [PATCH] 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) --- offlineimap/folder/Gmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/folder/Gmail.py b/offlineimap/folder/Gmail.py index af236e1..f78f9c3 100644 --- a/offlineimap/folder/Gmail.py +++ b/offlineimap/folder/Gmail.py @@ -76,7 +76,7 @@ class GmailFolder(IMAPFolder): # Embed the labels into the message headers if self.synclabels: - m = re.search('X-GM-LABELS\s*[(](.*)[)]', data[0][0]) + m = re.search('X-GM-LABELS\s*[(](.*)[)]', data[0]) if m: labels = set([imaputil.dequote(lb) for lb in imaputil.imapsplit(m.group(1))]) else: