Commit c9c460a1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to reply mail as html if we want

parent cfc06211
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.14.43")
set(PIM_VERSION "5.14.44")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -438,6 +438,16 @@ KMime::Content *MessageFactoryNG::createForwardAttachmentMessage(const KMime::Me
return msgPart;
}
bool MessageFactoryNG::replyAsHtml() const
{
return m_replyAsHtml;
}
void MessageFactoryNG::setReplyAsHtml(bool replyAsHtml)
{
m_replyAsHtml = replyAsHtml;
}
KMime::Message::Ptr MessageFactoryNG::createResend()
{
KMime::Message::Ptr msg(new KMime::Message);
......
......@@ -219,6 +219,9 @@ public:
*/
Q_REQUIRED_RESULT static bool MDNMDNUnknownOption(const KMime::Message::Ptr &msg);
Q_REQUIRED_RESULT bool replyAsHtml() const;
void setReplyAsHtml(bool replyAsHtml);
Q_SIGNALS:
void createReplyDone(const MessageComposer::MessageFactoryNG::MessageReply &reply);
void createForwardDone(const KMime::Message::Ptr &msg);
......@@ -259,6 +262,7 @@ private:
QString m_selection;
QString m_template;
bool m_quote = true;
bool m_replyAsHtml = false;
KMime::Types::Mailbox::List m_mailingListAddresses;
Akonadi::Item::Id m_id;
};
......
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