diff options
Diffstat (limited to 'framework/src/domain/mime/tests/mailtemplatetest.cpp')
-rw-r--r-- | framework/src/domain/mime/tests/mailtemplatetest.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/framework/src/domain/mime/tests/mailtemplatetest.cpp b/framework/src/domain/mime/tests/mailtemplatetest.cpp index 9ec7cf18..0e8eb2c3 100644 --- a/framework/src/domain/mime/tests/mailtemplatetest.cpp +++ b/framework/src/domain/mime/tests/mailtemplatetest.cpp | |||
@@ -151,6 +151,19 @@ private slots: | |||
151 | QCOMPARE(unquote(content), QLatin1String("If you can see this text it means that your email client couldn't display our newsletter properly.\nPlease visit this link to view the newsletter on our website: http://www.gog.com/newsletter/\n")); | 151 | QCOMPARE(unquote(content), QLatin1String("If you can see this text it means that your email client couldn't display our newsletter properly.\nPlease visit this link to view the newsletter on our website: http://www.gog.com/newsletter/\n")); |
152 | } | 152 | } |
153 | 153 | ||
154 | void testAttachmentReply() | ||
155 | { | ||
156 | auto msg = readMail("plaintextattachment.mbox"); | ||
157 | KMime::Message::Ptr result; | ||
158 | MailTemplates::reply(msg, [&] (const KMime::Message::Ptr &r) { | ||
159 | result = r; | ||
160 | }); | ||
161 | QTRY_VERIFY(result); | ||
162 | auto content = removeFirstLine(result->body()); | ||
163 | QVERIFY(!content.isEmpty()); | ||
164 | QCOMPARE(unquote(content), QLatin1String("sdlkjsdjf")); | ||
165 | } | ||
166 | |||
154 | void testCreatePlainMail() | 167 | void testCreatePlainMail() |
155 | { | 168 | { |
156 | QStringList to = {{"to@example.org"}}; | 169 | QStringList to = {{"to@example.org"}}; |