diff options
Diffstat (limited to 'tests/teststore.cpp')
-rw-r--r-- | tests/teststore.cpp | 11 |
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)); |