From d11978620ea82d1795c9fdd65c4c79d3dd852440 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 22 Dec 2015 18:13:38 +0100 Subject: Added the mail date property --- examples/maildirresource/maildirresource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index 90b4e55..68eb099 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp @@ -299,7 +299,7 @@ void MaildirResource::synchronizeMails(Akonadi2::Storage::Transaction &transacti mail.setProperty("subject", msg->subject(true)->asUnicodeString()); mail.setProperty("sender", msg->from(true)->asUnicodeString()); mail.setProperty("senderName", msg->from(true)->asUnicodeString()); - mail.setProperty("date", msg->date(true)->dateTime().toString()); + mail.setProperty("date", msg->date(true)->dateTime()); mail.setProperty("folder", resolveRemoteId(ENTITY_TYPE_FOLDER, path, synchronizationTransaction)); mail.setProperty("mimeMessage", filepath); mail.setProperty("unread", !flags.testFlag(KPIM::Maildir::Seen)); -- cgit v1.2.3