mirror of
https://github.com/moparisthebest/mail
synced 2025-01-30 22:50:17 -05:00
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:
commit
cf20672735
@ -32,7 +32,7 @@
|
|||||||
"crypto-lib": "~0.2.1",
|
"crypto-lib": "~0.2.1",
|
||||||
"dompurify": "~0.4.2",
|
"dompurify": "~0.4.2",
|
||||||
"express": "^4.8.3",
|
"express": "^4.8.3",
|
||||||
"imap-client": "~0.4.0",
|
"imap-client": "~0.4.3",
|
||||||
"jquery": "~2.1.1",
|
"jquery": "~2.1.1",
|
||||||
"mailreader": "~0.3.5",
|
"mailreader": "~0.3.5",
|
||||||
"ng-infinite-scroll": "~1.1.2",
|
"ng-infinite-scroll": "~1.1.2",
|
||||||
@ -65,4 +65,4 @@
|
|||||||
"mocha": "~1.13.0",
|
"mocha": "~1.13.0",
|
||||||
"sinon": "~1.7.3"
|
"sinon": "~1.7.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -179,6 +179,7 @@ define(function(require) {
|
|||||||
outboxMailboxName: 'Outbox',
|
outboxMailboxName: 'Outbox',
|
||||||
outboxMailboxType: 'Outbox',
|
outboxMailboxType: 'Outbox',
|
||||||
connDocTimeout: 5000,
|
connDocTimeout: 5000,
|
||||||
|
imapUpdateBatchSize: 25
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -225,6 +225,9 @@ define(function(require) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user