From 38d760364d5a297e73838bac2094e04424253e63 Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Tue, 30 Sep 2014 17:54:35 +0200 Subject: [PATCH] [WO-588] add options to get update notifications in batches --- package.json | 2 +- src/js/app-config.js | 1 + src/js/app-controller.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ca7da8f..80fb30d 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "crypto-lib": "~0.2.1", "dompurify": "~0.4.2", "express": "^4.8.3", - "imap-client": "~0.4.0", + "imap-client": "https://github.com/whiteout-io/imap-client/tarball/dev/WO-588", "jquery": "~2.1.1", "mailreader": "~0.3.5", "ng-infinite-scroll": "~1.1.2", diff --git a/src/js/app-config.js b/src/js/app-config.js index ec7a4be..b20d371 100644 --- a/src/js/app-config.js +++ b/src/js/app-config.js @@ -179,6 +179,7 @@ define(function(require) { outboxMailboxName: 'Outbox', outboxMailboxType: 'Outbox', connDocTimeout: 5000, + imapUpdateBatchSize: 100 }; /** diff --git a/src/js/app-controller.js b/src/js/app-controller.js index 5745371..b629381 100644 --- a/src/js/app-controller.js +++ b/src/js/app-controller.js @@ -221,6 +221,7 @@ define(function(require) { return; } + credentials.imap.maxUpdateSize = config.imapUpdateBatchSize; initClients(credentials); });