[Commits] [SCM] claws branch, master, updated. 3.14.1-42-g773ddbb

claws at claws-mail.org claws at claws-mail.org
Mon Dec 12 15:02:32 CET 2016


The branch, master has been updated
       via  773ddbbae8fb70c2e715c95d819ec8810cc2641b (commit)
      from  3bbea866fa43faceb84e9c10f24cbc8949905bd2 (commit)

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


- Log -----------------------------------------------------------------
commit 773ddbbae8fb70c2e715c95d819ec8810cc2641b
Author: Paul <paul at claws-mail.org>
Date:   Mon Dec 12 14:02:28 2016 +0000

    rename compose_guess_forward_account_from_msginfo() to compose_find_account()

diff --git a/src/compose.c b/src/compose.c
index 93669d3..10ecdc2 100644
--- 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;
 	

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list