aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2020-07-10 15:22:17 -0300
committerJason Gunthorpe <jgg@nvidia.com>2020-07-10 15:22:17 -0300
commitcb98a79c1515f756e42679813bc981c656f963dc (patch)
treeebf540ce42afb155e0cc4223c8d531b27a1af003
parentc353c00ef8d1897079a8c32f7913ea5d33331de2 (diff)
downloadcloud_mdir_sync-cb98a79c1515f756e42679813bc981c656f963dc.tar.gz
cloud_mdir_sync-cb98a79c1515f756e42679813bc981c656f963dc.tar.bz2
cloud_mdir_sync-cb98a79c1515f756e42679813bc981c656f963dc.zip
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 <jgg@nvidia.com>
-rw-r--r--cloud_mdir_sync/gmail.py2
1 files changed, 1 insertions, 1 deletions
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]