[Commits] [SCM] claws branch, master, updated. 4.1.0-82-gdb8edf89d

paul at claws-mail.org paul at claws-mail.org
Wed Oct 19 14:46:16 UTC 2022


The branch, master has been updated
       via  db8edf89d8b6dd9f8f407336fc75764da1d670a7 (commit)
      from  fde7dd3fb3a311848f5f0392c07813a67e1aaeb2 (commit)

Summary of changes:
 src/compose.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit db8edf89d8b6dd9f8f407336fc75764da1d670a7
Author: Paul <paul at claws-mail.org>
Date:   Wed Oct 19 15:46:12 2022 +0100

    fix bug where NNTP account's SMTP server wasn't used

diff --git a/src/compose.c b/src/compose.c
index 88d21c47c..5908f9d4f 100644
--- 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;
 		}

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list