Merge pull request #134 from whiteout-io/dev/WO-588

[WO-588] add options to get update notifications in batches
This commit is contained in:
Tankred Hase 2014-10-02 18:17:01 +02:00
commit cf20672735
3 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,7 @@
"crypto-lib": "~0.2.1",
"dompurify": "~0.4.2",
"express": "^4.8.3",
"imap-client": "~0.4.0",
"imap-client": "~0.4.3",
"jquery": "~2.1.1",
"mailreader": "~0.3.5",
"ng-infinite-scroll": "~1.1.2",
@ -65,4 +65,4 @@
"mocha": "~1.13.0",
"sinon": "~1.7.3"
}
}
}

View File

@ -179,6 +179,7 @@ define(function(require) {
outboxMailboxName: 'Outbox',
outboxMailboxType: 'Outbox',
connDocTimeout: 5000,
imapUpdateBatchSize: 25
};
/**

View File

@ -225,6 +225,9 @@ define(function(require) {
});
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;