aboutsummaryrefslogtreecommitdiff
path: root/src/imap/mail_view.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-08 11:13:13 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-08 11:13:13 +0100
commit558e32fbd27be9a81144571b4baf318293be1344 (patch)
tree238e785d2c72dfff6015f78a340246750e45e4a2 /src/imap/mail_view.rs
parent35fd24ee46d8162cffe3aebcb32d0db1f35bd220 (diff)
downloadaerogramme-558e32fbd27be9a81144571b4baf318293be1344.tar.gz
aerogramme-558e32fbd27be9a81144571b4baf318293be1344.zip
UID sequence are now correctly fetched
Diffstat (limited to 'src/imap/mail_view.rs')
-rw-r--r--src/imap/mail_view.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imap/mail_view.rs b/src/imap/mail_view.rs
index 2c8723e..8dd68b5 100644
--- a/src/imap/mail_view.rs
+++ b/src/imap/mail_view.rs
@@ -26,13 +26,13 @@ use crate::imap::mime_view;
use crate::imap::response::Body;
pub struct MailView<'a> {
- pub in_idx: MailIndex<'a>,
+ pub in_idx: &'a MailIndex<'a>,
pub query_result: &'a QueryResult<'a>,
pub content: FetchedMail<'a>,
}
impl<'a> MailView<'a> {
- pub fn new(query_result: &'a QueryResult<'a>, in_idx: MailIndex<'a>) -> Result<MailView<'a>> {
+ pub fn new(query_result: &'a QueryResult<'a>, in_idx: &'a MailIndex<'a>) -> Result<MailView<'a>> {
Ok(Self {
in_idx,
query_result,