[kde-doc-english] [trojita] src/Gui: GUI: show the Sender and In-Reply-To headers if different than the From
Jan Kundrát
jkt at flaska.net
Tue Dec 25 18:21:40 UTC 2012
Git commit f9a74f6280089cf128e0d1a869b1bf3eaa8fbbd3 by Jan Kundrát.
Committed on 25/12/2012 at 19:17.
Pushed by jkt into branch 'master'.
GUI: show the Sender and In-Reply-To headers if different than the From
M +4 -0 src/Gui/MessageView.cpp
http://commits.kde.org/trojita/f9a74f6280089cf128e0d1a869b1bf3eaa8fbbd3
diff --git a/src/Gui/MessageView.cpp b/src/Gui/MessageView.cpp
index 64f09a5..d4d6576 100644
--- a/src/Gui/MessageView.cpp
+++ b/src/Gui/MessageView.cpp
@@ -305,6 +305,10 @@ QString MessageView::headerText()
QString res;
if (!e.from.isEmpty())
res += tr("<b>From:</b> %1<br/>").arg(Imap::Message::MailAddress::prettyList(e.from, Imap::Message::MailAddress::FORMAT_CLICKABLE));
+ if (!e.sender.isEmpty() && e.sender != e.from)
+ res += tr("<b>Sender:</b> %1<br/>").arg(Imap::Message::MailAddress::prettyList(e.sender, Imap::Message::MailAddress::FORMAT_CLICKABLE));
+ if (!e.replyTo.isEmpty() && e.replyTo != e.from)
+ res += tr("<b>Reply-To:</b> %1<br/>").arg(Imap::Message::MailAddress::prettyList(e.replyTo, Imap::Message::MailAddress::FORMAT_CLICKABLE));
if (!e.to.isEmpty())
res += tr("<b>To:</b> %1<br/>").arg(Imap::Message::MailAddress::prettyList(e.to, Imap::Message::MailAddress::FORMAT_CLICKABLE));
if (!e.cc.isEmpty())
More information about the kde-doc-english
mailing list