fix: delete imap_markseen entries not corresponding to any imap rows

This commit is contained in:
link2xt
2026-03-26 05:03:30 +01:00
committed by l
parent 4dd0ba2c72
commit c8716ad85a

View File

@@ -1103,6 +1103,14 @@ impl Session {
return Ok(());
}
context
.sql
.execute(
"DELETE FROM imap_markseen WHERE id NOT IN (SELECT imap.id FROM imap)",
(),
)
.await?;
let transport_id = self.transport_id();
let mut rows = context
.sql