mirror of
https://github.com/moparisthebest/mail
synced 2024-11-12 04:05:13 -05:00
fix verification due to erroneous object passed
This commit is contained in:
parent
c98c39ecbf
commit
f5b7b61e45
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user