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

fix verification due to erroneous object passed

This commit is contained in:
Felix Hammerl 2013-12-09 10:40:17 +01:00
parent c98c39ecbf
commit f5b7b61e45

View File

@ -440,8 +440,15 @@ define(function(require) {
return; return;
} }
if (isVerificationMail(message)) { // create a bastard child of smtp and imap.
verify(message, function(err) { // before thinking this is stupid, talk to the guys who wrote this.
imapHeader.id = message.id;
imapHeader.body = message.body;
imapHeader.html = message.html;
imapHeader.attachments = message.attachments;
if (isVerificationMail(imapHeader)) {
verify(imapHeader, function(err) {
if (err) { if (err) {
self._account.busy = false; self._account.busy = false;
callback(err); callback(err);
@ -453,13 +460,6 @@ define(function(require) {
return; return;
} }
// create a bastard child of smtp and imap.
// before thinking this is stupid, talk to the guys who wrote this.
imapHeader.id = message.id;
imapHeader.body = message.body;
imapHeader.html = message.html;
imapHeader.attachments = message.attachments;
// add the encrypted message to the local storage // add the encrypted message to the local storage
self._localStoreMessages({ self._localStoreMessages({
folder: folder.path, folder: folder.path,