diff options
author | Quentin <quentin@dufour.io> | 2023-10-12 10:22:41 +0000 |
---|---|---|
committer | Quentin <quentin@dufour.io> | 2023-10-12 10:22:41 +0000 |
commit | 609dde413972ebeeb8cd658a5ec9f62b34b5c402 (patch) | |
tree | 419f57fbd9c179c518fd57c0e3f31098305eb4b3 /src/mail/user.rs | |
parent | 726b8c00159230e44e3b7726cb2c96d08073379c (diff) | |
parent | a1b7ca17c0badff4c983f3738531f3aa9b0fb977 (diff) | |
download | aerogramme-609dde413972ebeeb8cd658a5ec9f62b34b5c402.tar.gz aerogramme-609dde413972ebeeb8cd658a5ec9f62b34b5c402.zip |
Merge pull request 'partial re-implementation of body ext' (#30) from bodyext into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/aerogramme/pulls/30
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`. |