1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-29 20:32:15 -05:00

[WO-588] move maxUpdateSize assignment

This commit is contained in:
Felix Hammerl 2014-10-02 18:15:32 +02:00
parent 771b03e13a
commit b02989e766

View File

@ -221,11 +221,13 @@ define(function(require) {
return; return;
} }
credentials.imap.maxUpdateSize = config.imapUpdateBatchSize;
initClients(credentials); initClients(credentials);
}); });
function initClients(credentials) { function initClients(credentials) {
// add the maximum update batch size for imap folders to the imap configuration
credentials.imap.maxUpdateSize = config.imapUpdateBatchSize;
var pgpMailer = new PgpMailer(credentials.smtp, self._pgpbuilder); var pgpMailer = new PgpMailer(credentials.smtp, self._pgpbuilder);
var imapClient = new ImapClient(credentials.imap); var imapClient = new ImapClient(credentials.imap);
imapClient.onError = onConnectionError; imapClient.onError = onConnectionError;