From 36ab7bdf473e560c8f4c5598e7f95848c277620c Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 28 Feb 2024 22:32:38 +0000 Subject: [PATCH] refactor(imap): do not get Session twice in fetch_new_messages() --- src/imap.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/imap.rs b/src/imap.rs index 79d055f46..7da30258f 100644 --- a/src/imap.rs +++ b/src/imap.rs @@ -536,7 +536,6 @@ impl Imap { let uid_validity = get_uidvalidity(context, folder).await?; let old_uid_next = get_uid_next(context, folder).await?; - let session = self.session.as_mut().context("No IMAP session")?; let msgs = if fetch_existing_msgs { session .prefetch_existing_msgs()