diff options
Diffstat (limited to 'framework/src/domain/mime/tests/mailtemplatetest.cpp')
-rw-r--r-- | framework/src/domain/mime/tests/mailtemplatetest.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/framework/src/domain/mime/tests/mailtemplatetest.cpp b/framework/src/domain/mime/tests/mailtemplatetest.cpp index 098c34bc..1fff4c78 100644 --- a/framework/src/domain/mime/tests/mailtemplatetest.cpp +++ b/framework/src/domain/mime/tests/mailtemplatetest.cpp | |||
@@ -126,6 +126,17 @@ private slots: | |||
126 | QCOMPARE(unquote(removeFirstLine(result->body())), QLatin1String("HTML text")); | 126 | QCOMPARE(unquote(removeFirstLine(result->body())), QLatin1String("HTML text")); |
127 | } | 127 | } |
128 | 128 | ||
129 | void testHtml8BitEncodedReply() | ||
130 | { | ||
131 | auto msg = readMail("8bitencoded.mbox"); | ||
132 | KMime::Message::Ptr result; | ||
133 | MailTemplates::reply(msg, [&] (const KMime::Message::Ptr &r) { | ||
134 | result = r; | ||
135 | }); | ||
136 | QTRY_VERIFY(result); | ||
137 | QVERIFY(MailTemplates::plaintextContent(result).contains(QString::fromUtf8("Why Pisa’s Tower"))); | ||
138 | } | ||
139 | |||
129 | void testMultipartSignedReply() | 140 | void testMultipartSignedReply() |
130 | { | 141 | { |
131 | auto msg = readMail("openpgp-signed-mailinglist.mbox"); | 142 | auto msg = readMail("openpgp-signed-mailinglist.mbox"); |