From cb98a79c1515f756e42679813bc981c656f963dc Mon Sep 17 00:00:00 2001 From: Jason Gunthorpe Date: Fri, 10 Jul 2020 15:22:17 -0300 Subject: gmail: Fix a spelling error in add_message() Not sure when gmail sends a message ID without a labelId stanza, but apparently it happens rarely. Signed-off-by: Jason Gunthorpe --- cloud_mdir_sync/gmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloud_mdir_sync') diff --git a/cloud_mdir_sync/gmail.py b/cloud_mdir_sync/gmail.py index 98c76cb..7ef9478 100644 --- a/cloud_mdir_sync/gmail.py +++ b/cloud_mdir_sync/gmail.py @@ -438,7 +438,7 @@ class GMailMailbox(mailbox.Mailbox): if "labelIds" in jmsg: gmsgs[gmail_id] = labels = set(jmsg["labelIds"]) else: - if gmail_id not in msgs: + if gmail_id not in gmsgs: gmsgs[gmail_id] = labels = set() else: labels = gmsgs[gmail_id] -- cgit v1.2.3