From d8becef1a1e36c8527f4e9bd1dcda9149158ce51 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 11 Jan 2018 11:49:59 +0100 Subject: Create thread for conversationview --- tests/teststore.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') 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 = {}) {}, {}, {}); + if (object.contains("messageId")) { + msg->messageID(true)->from7BitString(object["messageId"].toByteArray()); + } + if (object.contains("inReplyTo")) { + msg->inReplyTo(true)->from7BitString(object["inReplyTo"].toByteArray()); + } + if (object.contains("date")) { + msg->date(true)->setDateTime(QDateTime::fromString(object["date"].toString(), Qt::ISODate)); + } + + msg->assemble(); auto mail = ApplicationDomainType::createEntity(object["resource"].toByteArray()); mail.setMimeMessage(msg->encodedContent(true)); -- cgit v1.2.3