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: