diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-10-12 12:21:59 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-10-12 12:21:59 +0200 |
commit | a1b7ca17c0badff4c983f3738531f3aa9b0fb977 (patch) | |
tree | 419f57fbd9c179c518fd57c0e3f31098305eb4b3 /src/mail/user.rs | |
parent | b444ef7ef3d6e0e57726130e3b89a676cdcd6245 (diff) | |
download | aerogramme-a1b7ca17c0badff4c983f3738531f3aa9b0fb977.tar.gz aerogramme-a1b7ca17c0badff4c983f3738531f3aa9b0fb977.zip |
basic body ext testing + format
Diffstat (limited to 'src/mail/user.rs')
-rw-r--r-- | src/mail/user.rs | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/mail/user.rs b/src/mail/user.rs index 44e0081..5523c2a 100644 --- a/src/mail/user.rs +++ b/src/mail/user.rs @@ -334,17 +334,22 @@ impl MailboxList { } fn has_mailbox(&self, name: &str) -> bool { - matches!(self.0.get(name), Some(MailboxListEntry { - id_lww: (_, Some(_)), - .. - })) + matches!( + self.0.get(name), + Some(MailboxListEntry { + id_lww: (_, Some(_)), + .. + }) + ) } fn get_mailbox(&self, name: &str) -> Option<(ImapUidvalidity, Option<UniqueIdent>)> { - self.0.get(name).map(|MailboxListEntry { - id_lww: (_, mailbox_id), - uidvalidity, - }| (*uidvalidity, *mailbox_id)) + self.0.get(name).map( + |MailboxListEntry { + id_lww: (_, mailbox_id), + uidvalidity, + }| (*uidvalidity, *mailbox_id), + ) } /// Ensures mailbox `name` maps to id `id`. |