talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit e7206c0db77c92987f659fb91024ae23f512b9aa
parent dc84b54f83b90d57f37b901ca69d673a1f8e4706
Author: Paul <paul@claws-mail.org>
Date:   Tue, 22 Nov 2016 09:52:06 +0000

don't ignore auto-account selection when forwarding on IMAP and NNTP accounts

patch by Blatinox

Diffstat:
Msrc/compose.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/compose.c b/src/compose.c @@ -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; }