summaryrefslogtreecommitdiffstats
path: root/tests/mailsynctest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-14 12:39:29 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-14 13:23:28 +0200
commitae1c5a0a53d1fd351b6fd33e8a46ad1034874489 (patch)
tree7971bc16da091821bf0fbb2aa91ca04c22e5c2b0 /tests/mailsynctest.cpp
parent7dc97cc6e338e1d756734e1620a062cdb08635ca (diff)
downloadsink-ae1c5a0a53d1fd351b6fd33e8a46ad1034874489.tar.gz
sink-ae1c5a0a53d1fd351b6fd33e8a46ad1034874489.zip
Deal with both CRLF and LF mime messages.
IMAP always requires CRLF, and so does the MIME standard, KMIME expects LF-only. We now just try to always use CRLF on disk, but convert LF-only messages should we have to (e.g. because copied over from maildir or so).
Diffstat (limited to 'tests/mailsynctest.cpp')
-rw-r--r--tests/mailsynctest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mailsynctest.cpp b/tests/mailsynctest.cpp
index 5d51fbc..27b29a5 100644
--- a/tests/mailsynctest.cpp
+++ b/tests/mailsynctest.cpp
@@ -275,7 +275,7 @@ void MailSyncTest::testListMails()
275 QVERIFY(!data.isEmpty()); 275 QVERIFY(!data.isEmpty());
276 276
277 KMime::Message m; 277 KMime::Message m;
278 m.setContent(data); 278 m.setContent(KMime::CRLFtoLF(data));
279 m.parse(); 279 m.parse();
280 QCOMPARE(mail->getSubject(), m.subject(true)->asUnicodeString()); 280 QCOMPARE(mail->getSubject(), m.subject(true)->asUnicodeString());
281 QVERIFY(!mail->getFolder().isEmpty()); 281 QVERIFY(!mail->getFolder().isEmpty());