[WO-588] move maxUpdateSize assignment

This commit is contained in:
Felix Hammerl 2014-10-02 18:15:32 +02:00
parent 771b03e13a
commit b02989e766
1 changed files with 3 additions and 1 deletions

View File

@ -221,11 +221,13 @@ define(function(require) {
return;
}
credentials.imap.maxUpdateSize = config.imapUpdateBatchSize;
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 imapClient = new ImapClient(credentials.imap);
imapClient.onError = onConnectionError;