smtp: remove the message in case of permanent failure

When `smtp_send` returns `Status::Finished`,
the message should be removed from the queue even in case of
failure, such as a permanent error.

In addition to this bugfix, move the retry count increase to
the beginning of `send_msg_to_smtp` to ensure no message is
retried infinitely even in case of similar bugs.
This commit is contained in:
link2xt
2022-02-12 16:20:13 +00:00
parent 1d56b24b67
commit 242e8e2bb3
2 changed files with 19 additions and 16 deletions

View File

@@ -12,6 +12,7 @@
- treat "NO" IMAP response to MOVE and COPY commands as an error #3058
- Fix a bug where messages in the Spam folder created contact requests #3015
- Fix a bug where drafts disappeared after some days #3067
- do not retry message sending infinitely in case of permanent SMTP failure #3070
## 1.75.0