diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2020-02-04 14:50:15 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-02-05 09:30:56 -0400 |
commit | b8672997e116c91735487c0540cde38bc29a5ce3 (patch) | |
tree | 9f6387517a6cab8e314e2df81d8d97eb4c2b6d2f /cloud_mdir_sync/office365.py | |
parent | e099b49c60c0ac346df097ac2a4099ac47c893fe (diff) | |
download | cloud_mdir_sync-b8672997e116c91735487c0540cde38bc29a5ce3.tar.gz cloud_mdir_sync-b8672997e116c91735487c0540cde38bc29a5ce3.tar.bz2 cloud_mdir_sync-b8672997e116c91735487c0540cde38bc29a5ce3.zip |
Preserve flags in the local MailDir that are not supported in the cloud
This is needed for gmail, since it doesn't support all of the flags.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'cloud_mdir_sync/office365.py')
-rw-r--r-- | cloud_mdir_sync/office365.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cloud_mdir_sync/office365.py b/cloud_mdir_sync/office365.py index 7256006..0b77de4 100644 --- a/cloud_mdir_sync/office365.py +++ b/cloud_mdir_sync/office365.py @@ -355,6 +355,10 @@ class GraphAPI(object): class O365Mailbox(mailbox.Mailbox): """Cloud Office365 mailbox using the Microsoft Graph RESET API for data access""" storage_kind = "o365_v0" + supported_flags = (messages.Message.FLAG_REPLIED + | messages.Message.FLAG_READ + | messages.Message.FLAG_FLAGGED + | messages.Message.FLAG_DELETED) loop: asyncio.AbstractEventLoop timer = None use_owa_subscribe = True |