diff options
Diffstat (limited to 'src/mail/mailbox.rs')
-rw-r--r-- | src/mail/mailbox.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs index 643a869..c4fa435 100644 --- a/src/mail/mailbox.rs +++ b/src/mail/mailbox.rs @@ -22,7 +22,11 @@ pub struct Mailbox { } impl Mailbox { - pub(super) async fn open(creds: &Credentials, id: UniqueIdent, min_uidvalidity: ImapUidvalidity) -> Result<Self> { + pub(super) async fn open( + creds: &Credentials, + id: UniqueIdent, + min_uidvalidity: ImapUidvalidity, + ) -> Result<Self> { let index_path = format!("index/{}", id); let mail_path = format!("mail/{}", id); @@ -31,7 +35,13 @@ impl Mailbox { let uidvalidity = uid_index.state().uidvalidity; if uidvalidity < min_uidvalidity { - uid_index.push(uid_index.state().op_bump_uidvalidity(min_uidvalidity.get() - uidvalidity.get())).await?; + uid_index + .push( + uid_index + .state() + .op_bump_uidvalidity(min_uidvalidity.get() - uidvalidity.get()), + ) + .await?; } let mbox = RwLock::new(MailboxInternal { |