mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
fix: delete imap_markseen entries not corresponding to any imap rows
This commit is contained in:
@@ -1103,6 +1103,14 @@ impl Session {
|
|||||||
return Ok(());
|
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 transport_id = self.transport_id();
|
||||||
let mut rows = context
|
let mut rows = context
|
||||||
.sql
|
.sql
|
||||||
|
|||||||
Reference in New Issue
Block a user