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