diff options
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r-- | service/pixelated/adapter/pixelated_mailbox.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/pixelated/adapter/pixelated_mailbox.py b/service/pixelated/adapter/pixelated_mailbox.py index 61fd42dc..a5b07660 100644 --- a/service/pixelated/adapter/pixelated_mailbox.py +++ b/service/pixelated/adapter/pixelated_mailbox.py @@ -28,6 +28,9 @@ class PixelatedMailbox: def __init__(self, leap_mailbox, index_file_path): self.leap_mailbox = leap_mailbox self.tag_index = TagIndex(index_file_path) + if self.tag_index.empty(): + for mail in self.mails(): + self.notify_tags_updated(mail.tags, [], mail.ident) for tag in self.SPECIAL_TAGS: self.tag_index.add(tag) |