aboutsummaryrefslogtreecommitdiff
path: root/src/mail
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail')
-rw-r--r--src/mail/user.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mail/user.rs b/src/mail/user.rs
index 4767a93..ad05615 100644
--- a/src/mail/user.rs
+++ b/src/mail/user.rs
@@ -269,10 +269,12 @@ impl User {
}
};
- let is_default_mbx_missing = [ DRAFTS, ARCHIVE, SENT, TRASH ]
+ let is_default_mbx_missing = [DRAFTS, ARCHIVE, SENT, TRASH]
.iter()
.map(|mbx| list.create_mailbox(mbx))
- .fold(false, |acc, r| acc || matches!(r, CreatedMailbox::Created(..)));
+ .fold(false, |acc, r| {
+ acc || matches!(r, CreatedMailbox::Created(..))
+ });
let is_inbox_missing = self.ensure_inbox_exists(&mut list, &row).await?;
if is_default_mbx_missing && !is_inbox_missing {
// It's the only case where we created some mailboxes and not saved them