aboutsummaryrefslogtreecommitdiff
path: root/src/imap/mail_view.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-06 23:35:23 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-06 23:35:23 +0100
commit1d84b0ffd006b895aeb15c621fcd0ced826a0599 (patch)
tree7fa450d0e9181b686e6f9e0626e613040c452b07 /src/imap/mail_view.rs
parent4e3cbf79d03c84028733b0ad5f9bd06a8a13757b (diff)
downloadaerogramme-1d84b0ffd006b895aeb15c621fcd0ced826a0599.tar.gz
aerogramme-1d84b0ffd006b895aeb15c621fcd0ced826a0599.zip
Format code
Diffstat (limited to 'src/imap/mail_view.rs')
-rw-r--r--src/imap/mail_view.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/imap/mail_view.rs b/src/imap/mail_view.rs
index baeb2af..2c8723e 100644
--- a/src/imap/mail_view.rs
+++ b/src/imap/mail_view.rs
@@ -1,7 +1,7 @@
use std::num::NonZeroU32;
use anyhow::{anyhow, bail, Result};
-use chrono::{Offset, TimeZone, Utc, DateTime as ChronoDateTime, Local, naive::NaiveDate};
+use chrono::{naive::NaiveDate, DateTime as ChronoDateTime, Local, Offset, TimeZone, Utc};
use imap_codec::imap_types::core::NString;
use imap_codec::imap_types::datetime::DateTime;
@@ -167,7 +167,11 @@ impl<'a> MailView<'a> {
}
fn envelope(&self) -> MessageDataItem<'static> {
- MessageDataItem::Envelope(self.imf().expect("an imf object is derivable from fetchedmail").message_envelope())
+ MessageDataItem::Envelope(
+ self.imf()
+ .expect("an imf object is derivable from fetchedmail")
+ .message_envelope(),
+ )
}
fn body(&self) -> Result<MessageDataItem<'static>> {
@@ -237,7 +241,6 @@ impl<'a> MailView<'a> {
.ok_or(anyhow!("Unable to parse internal date"))?;
Ok(MessageDataItem::InternalDate(DateTime::unvalidated(dt)))
}
-
}
pub enum SeenFlag {