mirror of
https://github.com/moparisthebest/mail
synced 2025-02-07 02:20:14 -05:00
Dont overwrite folder model imap onLogin
This commit is contained in:
parent
dc02106492
commit
5d5d84cdc9
@ -115,22 +115,25 @@ define(function(require) {
|
||||
return;
|
||||
}
|
||||
|
||||
var inbox = _.findWhere(folders, {
|
||||
// only overwrite folders if they are not yet set
|
||||
if (!self._account.folders) {
|
||||
self._account.folders = folders;
|
||||
}
|
||||
|
||||
var inbox = _.findWhere(self._account.folders, {
|
||||
type: 'Inbox'
|
||||
});
|
||||
|
||||
if (inbox) {
|
||||
self._imapClient.listenForChanges({
|
||||
path: inbox.path
|
||||
},function(error, path) {
|
||||
}, function(error, path) {
|
||||
if (typeof self.onNeedsSync === 'function') {
|
||||
self.onNeedsSync(error, path);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
self._account.folders = folders;
|
||||
|
||||
callback();
|
||||
});
|
||||
}
|
||||
@ -300,7 +303,7 @@ define(function(require) {
|
||||
return;
|
||||
}
|
||||
|
||||
// attach the body to the mail object
|
||||
// attach the body to the mail object
|
||||
message.body = localMessage.body;
|
||||
handleEncryptedContent();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user