diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-25 14:12:03 -0600 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-25 14:12:03 -0600 |
commit | 9add3c1748710b8ee996aca19136b80097856cc7 (patch) | |
tree | 223e26b710382e617c866e30a5208f990d106cb1 /framework/src/domain/mime/tests/mailtemplatetest.cpp | |
parent | e33fc1f49a3cfd46affc2bd164b12943e13efcc8 (diff) | |
download | kube-9add3c1748710b8ee996aca19136b80097856cc7.tar.gz kube-9add3c1748710b8ee996aca19136b80097856cc7.zip |
Encoding tests
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"); |