fix: delete smtp rows when message sending is cancelled

This commit is contained in:
link2xt
2023-05-10 12:17:06 +00:00
parent 991089d98e
commit 9fc1fe74ad

View File

@@ -578,6 +578,11 @@ pub(crate) async fn send_msg_to_smtp(
context,
"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(());
}