diff options
-rw-r--r-- | cloud_mdir_sync/gmail.py | 1 | ||||
-rw-r--r-- | cloud_mdir_sync/office365.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/cloud_mdir_sync/gmail.py b/cloud_mdir_sync/gmail.py index 949798b..b1d2b55 100644 --- a/cloud_mdir_sync/gmail.py +++ b/cloud_mdir_sync/gmail.py @@ -388,6 +388,7 @@ class GMailMailbox(mailbox.Mailbox): async def _fetch_message(self, msg: GMailMessage): msgdb = self.msgdb + msg.size = 0 with util.log_progress_ctx(logging.DEBUG, f"Downloading {msg.storage_id}", lambda msg: f" {util.sizeof_fmt(msg.size)}", diff --git a/cloud_mdir_sync/office365.py b/cloud_mdir_sync/office365.py index 9cfaf0d..5c52228 100644 --- a/cloud_mdir_sync/office365.py +++ b/cloud_mdir_sync/office365.py @@ -404,6 +404,7 @@ class O365Mailbox(mailbox.Mailbox): @mailbox.update_on_failure async def _fetch_message(self, msg: messages.Message): msgdb = self.msgdb + msg.size = 0 with util.log_progress_ctx(logging.DEBUG, f"Downloading {msg.email_id}", lambda msg: f" {util.sizeof_fmt(msg.size)}", |