From 78bf2dac423356a19560c427971b75e05c1c325e Mon Sep 17 00:00:00 2001 From: Spiek Date: Tue, 22 Mar 2016 14:48:46 +0100 Subject: [PATCH] Add date header field in RFC2822 format to MimeMessage --- src/mimemessage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mimemessage.cpp b/src/mimemessage.cpp index 0c4ebc2..ea57cf4 100644 --- a/src/mimemessage.cpp +++ b/src/mimemessage.cpp @@ -249,6 +249,7 @@ QString MimeMessage::toString() mime += "\r\n"; mime += "MIME-Version: 1.0\r\n"; + mime += QString("Date: %1\r\n").arg(QDateTime::currentDateTime().toString(Qt::RFC2822Date)); mime += content->toString(); return mime;