diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-10 21:36:17 -0600 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-10 21:38:37 -0600 |
commit | e07a23c486f67cc2014af3fd8a639a13dd100162 (patch) | |
tree | c2e5e739b590ece4941672f3a55508ef06d6d1ac /framework/src/domain/mime/tests/mailtemplatetest.cpp | |
parent | e354603dcb42c54ab11c0c393d5a1607ed6343d7 (diff) | |
download | kube-e07a23c486f67cc2014af3fd8a639a13dd100162.tar.gz kube-e07a23c486f67cc2014af3fd8a639a13dd100162.zip |
splitAddress does not work if the name has a comma in it
With i.e. "Mollekopf, Christian <mollekopf@example.org>", we'l end up
with an address "Mollekopf" and one "Christian <mollekopf@example.org>".
Diffstat (limited to 'framework/src/domain/mime/tests/mailtemplatetest.cpp')
-rw-r--r-- | framework/src/domain/mime/tests/mailtemplatetest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/src/domain/mime/tests/mailtemplatetest.cpp b/framework/src/domain/mime/tests/mailtemplatetest.cpp index 0e8eb2c3..92dfba65 100644 --- a/framework/src/domain/mime/tests/mailtemplatetest.cpp +++ b/framework/src/domain/mime/tests/mailtemplatetest.cpp | |||
@@ -112,6 +112,7 @@ private slots: | |||
112 | }); | 112 | }); |
113 | QTRY_VERIFY(result); | 113 | QTRY_VERIFY(result); |
114 | QCOMPARE(normalize(removeFirstLine(result->body())), normalize(msg->body())); | 114 | QCOMPARE(normalize(removeFirstLine(result->body())), normalize(msg->body())); |
115 | QCOMPARE(result->to()->addresses(), {{"konqi@example.org"}}); | ||
115 | } | 116 | } |
116 | 117 | ||
117 | void testHtmlReply() | 118 | void testHtmlReply() |
@@ -167,7 +168,7 @@ private slots: | |||
167 | void testCreatePlainMail() | 168 | void testCreatePlainMail() |
168 | { | 169 | { |
169 | QStringList to = {{"to@example.org"}}; | 170 | QStringList to = {{"to@example.org"}}; |
170 | QStringList cc = {{"cc@example.org"}};; | 171 | QStringList cc = {{"cc@example.org"}}; |
171 | QStringList bcc = {{"bcc@example.org"}};; | 172 | QStringList bcc = {{"bcc@example.org"}};; |
172 | KMime::Types::Mailbox from; | 173 | KMime::Types::Mailbox from; |
173 | from.fromUnicodeString("from@example.org"); | 174 | from.fromUnicodeString("from@example.org"); |