don't ignore auto-account selection when forwarding on IMAP and NNTP accounts
authorPaul <paul@claws-mail.org>
Tue, 22 Nov 2016 09:52:06 +0000 (09:52 +0000)
committerPaul <paul@claws-mail.org>
Tue, 22 Nov 2016 09:52:06 +0000 (09:52 +0000)
patch by Blatinox

src/compose.c

index d356f2a..14f81cc 100644 (file)
@@ -11744,9 +11744,6 @@ static PrefsAccount *compose_guess_forward_account_from_msginfo(MsgInfo *msginfo
        if (msginfo->folder->prefs->enable_default_account)
                account = account_find_from_id(msginfo->folder->prefs->default_account);
                
-       if (!account) 
-               account = msginfo->folder->folder->account;
-               
        if (!account && msginfo->to && prefs_common.forward_account_autosel) {
                gchar *to;
                Xstrdup_a(to, msginfo->to, return NULL);
@@ -11773,6 +11770,9 @@ static PrefsAccount *compose_guess_forward_account_from_msginfo(MsgInfo *msginfo
                        account = account_find_from_address(buf, FALSE);
                 }
        }
+
+       if (!account)
+               account = msginfo->folder->folder->account;
        
        return account;
 }