Commit 6861551c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add reply-to support (disable for the moment)

parent 159c04b3
......@@ -28,7 +28,7 @@
using namespace KPIM;
using namespace MessageComposer;
#define IMPLEMENT_REPLY_TO 1
//#define IMPLEMENT_REPLY_TO 1
class MessageComposer::RecipientPrivate
{
public:
......
......@@ -124,6 +124,7 @@ void RecipientsEditorSideWidget::updateTotalToolTip()
QString to;
QString cc;
QString bcc;
QString replyTo;
Recipient::List recipients = mEditor->recipients();
Recipient::List::ConstIterator it;
......@@ -140,6 +141,9 @@ void RecipientsEditorSideWidget::updateTotalToolTip()
case Recipient::Bcc:
bcc += emailLine;
break;
case Recipient::ReplyTo:
replyTo += emailLine;
break;
default:
break;
}
......@@ -152,6 +156,9 @@ void RecipientsEditorSideWidget::updateTotalToolTip()
if (!bcc.isEmpty()) {
text += i18nc("@info:tooltip %1 list of emails", "BCC:%1", bcc);
}
if (!replyTo.isEmpty()) {
text += i18nc("@info:tooltip %1 list of emails", "Reply-To:%1", replyTo);
}
mTotalLabel->setToolTip(QStringLiteral("<html><head><body>%1</body></head></html>").arg(text));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment