talons

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

commit a7f84c556ea8ac3a99addcfbe14b42297b281655
parent fe2e29969b327fc54a6469c32b117c0e09a5606f
Author: Paul <paul@claws-mail.org>
Date:   Wed, 11 Apr 2018 15:45:55 +0100

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

Diffstat:
Msrc/summaryview.c | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git 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;