diff options
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/maintenance.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/pixelated/maintenance.py b/service/pixelated/maintenance.py index b4e616a7..888c5b8d 100644 --- a/service/pixelated/maintenance.py +++ b/service/pixelated/maintenance.py @@ -148,6 +148,9 @@ def delete_all_mails(args): def add_mail_folder(account, maildir, folder_name, deferreds): + if folder_name not in account.mailboxes: + account.addMailbox(folder_name) + mbx = account.getMailbox(folder_name) for mail in maildir: flags = (WithMsgFields.RECENT_FLAG,) if mail.get_subdir() == 'new' else () |