From e07a23c486f67cc2014af3fd8a639a13dd100162 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 10 Aug 2017 21:36:17 -0600 Subject: splitAddress does not work if the name has a comma in it With i.e. "Mollekopf, Christian ", we'l end up with an address "Mollekopf" and one "Christian ". --- framework/src/domain/mime/tests/mailtemplatetest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/src/domain/mime/tests') 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: }); QTRY_VERIFY(result); QCOMPARE(normalize(removeFirstLine(result->body())), normalize(msg->body())); + QCOMPARE(result->to()->addresses(), {{"konqi@example.org"}}); } void testHtmlReply() @@ -167,7 +168,7 @@ private slots: void testCreatePlainMail() { QStringList to = {{"to@example.org"}}; - QStringList cc = {{"cc@example.org"}};; + QStringList cc = {{"cc@example.org"}}; QStringList bcc = {{"bcc@example.org"}};; KMime::Types::Mailbox from; from.fromUnicodeString("from@example.org"); -- cgit v1.2.3