summaryrefslogtreecommitdiffstats
path: root/tests/teststore.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-11 11:49:59 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-11 11:59:04 +0100
commitd8becef1a1e36c8527f4e9bd1dcda9149158ce51 (patch)
treeb31a5261cc26233c980525d49e3ce34560d06eeb /tests/teststore.cpp
parent738d6e6a8402ac11245ec738da75920b39ad6830 (diff)
downloadkube-d8becef1a1e36c8527f4e9bd1dcda9149158ce51.tar.gz
kube-d8becef1a1e36c8527f4e9bd1dcda9149158ce51.zip
Create thread for conversationview
Diffstat (limited to 'tests/teststore.cpp')
-rw-r--r--tests/teststore.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/teststore.cpp b/tests/teststore.cpp
index aafd56aa..817101be 100644
--- a/tests/teststore.cpp
+++ b/tests/teststore.cpp
@@ -77,6 +77,17 @@ static void createMail(const QVariantMap &object, const QByteArray &folder = {})
77 {}, 77 {},
78 {}, 78 {},
79 {}); 79 {});
80 if (object.contains("messageId")) {
81 msg->messageID(true)->from7BitString(object["messageId"].toByteArray());
82 }
83 if (object.contains("inReplyTo")) {
84 msg->inReplyTo(true)->from7BitString(object["inReplyTo"].toByteArray());
85 }
86 if (object.contains("date")) {
87 msg->date(true)->setDateTime(QDateTime::fromString(object["date"].toString(), Qt::ISODate));
88 }
89
90 msg->assemble();
80 91
81 auto mail = ApplicationDomainType::createEntity<Mail>(object["resource"].toByteArray()); 92 auto mail = ApplicationDomainType::createEntity<Mail>(object["resource"].toByteArray());
82 mail.setMimeMessage(msg->encodedContent(true)); 93 mail.setMimeMessage(msg->encodedContent(true));