1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 19:02:20 -05: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;
}
if (isVerificationMail(message)) {
verify(message, function(err) {
// 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;
if (isVerificationMail(imapHeader)) {
verify(imapHeader, function(err) {
if (err) {
self._account.busy = false;
callback(err);
@ -453,13 +460,6 @@ define(function(require) {
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
self._localStoreMessages({
folder: folder.path,