MailMessage: Fix date in header of forwarded mails
As investigated by madmax in #18230; Date() returns a time_t since 2015. Thanks! Change-Id: Ic35129ad60f6cadc09917c05e86f726de3061dcb Reviewed-on: https://review.haiku-os.org/c/haiku/+/6010 Reviewed-by: Axel Dörfler <axeld@pinc-software.de> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
parent
3387839223
commit
c3162b5d8a
@ -185,7 +185,7 @@ BEmailMessage::ForwardMessage(bool accountFromMail, bool includeAttachments)
|
|||||||
header << "CC: " << CC() << '\n';
|
header << "CC: " << CC() << '\n';
|
||||||
}
|
}
|
||||||
header << "Subject: " << Subject() << '\n';
|
header << "Subject: " << Subject() << '\n';
|
||||||
header << "Date: " << Date() << "\n\n";
|
header << "Date: " << HeaderField("Date") << "\n\n";
|
||||||
if (fTextBody != NULL)
|
if (fTextBody != NULL)
|
||||||
header << fTextBody->Text() << '\n';
|
header << fTextBody->Text() << '\n';
|
||||||
BEmailMessage *message = new BEmailMessage();
|
BEmailMessage *message = new BEmailMessage();
|
||||||
|
Loading…
Reference in New Issue
Block a user