diff --git a/chatmaild/src/chatmaild/fsreport.py b/chatmaild/src/chatmaild/fsreport.py index 375800f8..0b9a68ca 100644 --- a/chatmaild/src/chatmaild/fsreport.py +++ b/chatmaild/src/chatmaild/fsreport.py @@ -68,7 +68,7 @@ class Report: for size in self.message_buckets: for msg in mailbox.messages: if msg.size >= size: - if self.mdir and not msg.relpath.startswith(self.mdir): + if self.mdir and f"/{self.mdir}/" not in msg.path: continue self.message_buckets[size] += msg.size