fix: do not return an error from send_msg_to_smtp if retry limit is exceeded

This prevents sending the other messages for which the limit was not exceeded.
This commit is contained in:
link2xt
2023-05-10 13:16:36 +00:00
parent cb7f96449d
commit e3c01d76c4

View File

@@ -545,7 +545,7 @@ pub(crate) async fn send_msg_to_smtp(
.execute("DELETE FROM smtp WHERE id=?", (rowid,))
.await
.context("failed to remove message with exceeded retry limit from smtp table")?;
bail!("Number of retries exceeded the limit");
return Ok(());
}
info!(
context,