talons

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

commit b60df1ce713f7bea19165353ffc29473856c1c71
parent 8fc140e5e240bc0e07e8de3e1d968920176f622f
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;