[Commits] [SCM] claws branch, master, updated. 3.16.0-123-ga7f84c5

claws at claws-mail.org claws at claws-mail.org
Wed Apr 11 16:46:01 CEST 2018


The branch, master has been updated
       via  a7f84c556ea8ac3a99addcfbe14b42297b281655 (commit)
      from  fe2e29969b327fc54a6469c32b117c0e09a5606f (commit)

Summary of changes:
 src/summaryview.c |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit a7f84c556ea8ac3a99addcfbe14b42297b281655
Author: Paul <paul at claws-mail.org>
Date:   Wed Apr 11 15:45:55 2018 +0100

    fix bug 3978, '"From" column displays both name and email address for Outbox'

diff --git a/src/summaryview.c b/src/summaryview.c
index 586d7b1..df982dc 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -3468,10 +3468,19 @@ static inline void summary_set_header(SummaryView *summaryview, gchar *text[],
 	
 	to_text = msginfo->to ? msginfo->to : 
 		   (msginfo->cc ? msginfo->cc :
-		     (msginfo->newsgroups ? msginfo->newsgroups : _("(No Recipient)")
+		     (msginfo->newsgroups ? msginfo->newsgroups : NULL
 		     )
 		   );
 
+	if (!to_text)
+		to_text = _("(No Recipient)");
+	else {
+		if (prefs_common.summary_from_show == SHOW_NAME)
+			to_text = procheader_get_fromname(to_text);
+		else if (prefs_common.summary_from_show == SHOW_ADDR)
+			extract_address(to_text);
+	}
+
 	text[col_pos[S_COL_TO]] = to_text;
 	if (!should_swap) {
 		text[col_pos[S_COL_FROM]] = from_text;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list