We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce32799 commit d60a960Copy full SHA for d60a960
src/imap.rs
@@ -2248,11 +2248,16 @@ pub(crate) async fn prefetch_should_download(
2248
message_id: &str,
2249
mut flags: impl Iterator<Item = Flag<'_>>,
2250
) -> Result<bool> {
2251
- if message::rfc724_mid_exists(context, message_id)
2252
- .await?
2253
- .is_some()
+ if let Some((.., seen)) = message::rfc724_mid_exists_ex(
+ context,
+ message_id,
2254
+ "state>=16", // `InSeen`
2255
+ )
2256
+ .await?
2257
{
- markseen_on_imap_table(context, message_id).await?;
2258
+ if seen {
2259
+ markseen_on_imap_table(context, message_id).await?;
2260
+ }
2261
return Ok(false);
2262
}
2263
0 commit comments