Skip to content

Commit

Permalink
gmail: fix regexp
Browse files Browse the repository at this point in the history
Originally-written-by: Heinrich Hartmann <Heinrich@HeinrichHartmann.com>
Github-ref: OfflineIMAP#545
  • Loading branch information
nicolas33 committed May 9, 2018
1 parent 33cd887 commit 306f3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion offlineimap/folder/Gmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def getmessage(self, uid):

# 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][0])
if m:
labels = set([imaputil.dequote(lb) for lb in imaputil.imapsplit(m.group(1))])
else:
Expand Down

0 comments on commit 306f3ab

Please sign in to comment.