1
0
mirror of https://github.com/moparisthebest/mail synced 2024-08-13 16:43:47 -04:00

fix date bug

This commit is contained in:
Felix Hammerl 2013-12-05 19:03:48 +01:00
parent f721b06bb4
commit 7e2f0b0284

View File

@ -434,13 +434,17 @@ define(function(require) {
return;
}
message.answered = header.answered;
message.unread = header.unread;
// create a bastard child of smtp and imap.
// before thinking this is stupid, talk to the guys who wrote this.
header.id = message.id;
header.body = message.body;
header.html = message.html;
header.attachments = message.attachments;
// add the encrypted message to the local storage
self._localStoreMessages({
folder: folder.path,
emails: [message]
emails: [header]
}, function(err) {
if (err) {
self._account.busy = false;
@ -449,7 +453,7 @@ define(function(require) {
}
// decrypt and add to folder in memory
handleMessage(message, function(err, cleartextMessage) {
handleMessage(header, function(err, cleartextMessage) {
if (err) {
self._account.busy = false;
callback(err);