talons

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

commit 773ddbbae8fb70c2e715c95d819ec8810cc2641b
parent 3bbea866fa43faceb84e9c10f24cbc8949905bd2
Author: Paul <paul@claws-mail.org>
Date:   Mon, 12 Dec 2016 14:02:28 +0000

rename compose_guess_forward_account_from_msginfo() to compose_find_account()

Diffstat:
Msrc/compose.c | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/compose.c b/src/compose.c @@ -569,7 +569,7 @@ static void compose_check_backwards (GtkAction *action, gpointer data); static void compose_check_forwards_go (GtkAction *action, gpointer data); #endif -static PrefsAccount *compose_guess_forward_account_from_msginfo (MsgInfo *msginfo); +static PrefsAccount *compose_find_account (MsgInfo *msginfo); static MsgInfo *compose_msginfo_new_from_compose(Compose *compose); @@ -1770,9 +1770,7 @@ Compose *compose_forward(PrefsAccount *account, MsgInfo *msginfo, cm_return_val_if_fail(msginfo != NULL, NULL); cm_return_val_if_fail(msginfo->folder != NULL, NULL); - if (!account && - !(account = compose_guess_forward_account_from_msginfo - (msginfo))) + if (!account && !(account = compose_find_account(msginfo))) account = cur_account; if (!prefs_common.forward_as_attachment) @@ -1976,8 +1974,7 @@ static Compose *compose_forward_multiple(PrefsAccount *account, GSList *msginfo_ /* guess account from first selected message */ if (!account && - !(account = compose_guess_forward_account_from_msginfo - (msginfo_list->data))) + !(account = compose_find_account(msginfo_list->data))) account = cur_account; cm_return_val_if_fail(account != NULL, NULL); @@ -11722,7 +11719,7 @@ static void compose_check_forwards_go(GtkAction *action, gpointer data) *\brief Guess originating forward account from MsgInfo and several * "common preference" settings. Return NULL if no guess. */ -static PrefsAccount *compose_guess_forward_account_from_msginfo(MsgInfo *msginfo) +static PrefsAccount *compose_find_account(MsgInfo *msginfo) { PrefsAccount *account = NULL;