diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-10 17:39:23 -0600 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-10 21:38:37 -0600 |
commit | e354603dcb42c54ab11c0c393d5a1607ed6343d7 (patch) | |
tree | 9b23b428f983687fb9ac3475a114695ed5166f9a /framework/src/domain/mime/tests/mailtemplatetest.cpp | |
parent | bd6c52e3d3a4fbbe3381540cb844ee2b94691285 (diff) | |
download | kube-e354603dcb42c54ab11c0c393d5a1607ed6343d7.tar.gz kube-e354603dcb42c54ab11c0c393d5a1607ed6343d7.zip |
Don't quote attachments in the reply
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"}}; |