aboutsummaryrefslogtreecommitdiffstats
path: root/cloud_mdir_sync/office365.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloud_mdir_sync/office365.py')
-rw-r--r--cloud_mdir_sync/office365.py1
1 files changed, 1 insertions, 0 deletions
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)}",