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
parent 305cc090e5
commit 4999055420

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