commit db8edf89d8b6dd9f8f407336fc75764da1d670a7 parent fde7dd3fb3a311848f5f0392c07813a67e1aaeb2 Author: Paul <paul@claws-mail.org> Date: Wed, 19 Oct 2022 15:46:12 +0100 fix bug where NNTP account's SMTP server wasn't used Diffstat:
| M | src/compose.c | | | 7 | +++---- |
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/compose.c b/src/compose.c @@ -6157,11 +6157,10 @@ static ComposeQueueResult compose_queue_sub(Compose *compose, gint *msgnum, Fold } if (compose->to_list) { - if (compose->account->protocol != A_NNTP) - mailac = compose->account; - else if (cur_account && cur_account->protocol != A_NNTP) + mailac = compose->account; + if (!mailac && cur_account && cur_account->protocol != A_NNTP) mailac = cur_account; - else if (!(mailac = compose_current_mail_account())) { + else if (!mailac && !(mailac = compose_current_mail_account())) { alertpanel_error(_("No account for sending mails available!")); return COMPOSE_QUEUE_ERROR_NO_MSG; }