mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
fix: delete smtp rows when message sending is cancelled
This commit is contained in:
@@ -578,6 +578,11 @@ pub(crate) async fn send_msg_to_smtp(
|
|||||||
context,
|
context,
|
||||||
"Sending of message {msg_id} (entry {rowid}) was cancelled by the user."
|
"Sending of message {msg_id} (entry {rowid}) was cancelled by the user."
|
||||||
);
|
);
|
||||||
|
context
|
||||||
|
.sql
|
||||||
|
.execute("DELETE FROM smtp WHERE id=?", (rowid,))
|
||||||
|
.await
|
||||||
|
.context("failed to remove cancelled message from smtp table")?;
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user