imap-client
Advanced tools
Comparing version 0.10.0 to 0.10.1
{ | ||
"name": "imap-client", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "pretest": "dir=$(pwd) && cd node_modules/browserbox/node_modules/tcp-socket/node_modules/node-forge/ && npm install && npm run minify && cd $dir", |
@@ -169,3 +169,4 @@ # imap-client | ||
If there are updates available for an IMAP folder, you will receive the changed UIDs in the `#onSyncUpdate` callback. The IMAP client invokes the callback if there are new/changes messages after a mailbox has been selected and on IMAP expunge/exists/fetch updates have been pushed from the server | ||
If there are updates available for an IMAP folder, you will receive the changed UIDs in the `#onSyncUpdate` callback. The IMAP client invokes the callback if there are new/changes messages after a mailbox has been selected and on IMAP expunge/exists/fetch updates have been pushed from the server. | ||
If this handler is not set, you will not receive updates from IMAP. | ||
@@ -172,0 +173,0 @@ ``` |
@@ -148,2 +148,6 @@ (function(factory) { | ||
if (!self.onSyncUpdate) { | ||
return; | ||
} | ||
axe.debug(DEBUG_TAG, 'selected mailbox ' + path); | ||
@@ -246,2 +250,6 @@ | ||
if (!self.onSyncUpdate) { | ||
return; | ||
} | ||
// If both clients are currently listening the same mailbox, ignore data from listeningClient | ||
@@ -352,2 +360,6 @@ if (client === self._listeningClient && self._listeningClient.selectedMailbox === self._client.selectedMailbox) { | ||
if (!self.onSyncUpdate) { | ||
return; | ||
} | ||
// do nothing if we do not have highestModseq value. it should be at least 1. if it is | ||
@@ -404,5 +416,3 @@ // undefined then the server does not support CONDSTORE extension | ||
*/ | ||
ImapClient.prototype.onSyncUpdate = function( /* options */ ) { | ||
this.onError(new Error('Sync handler not set')); | ||
}; | ||
ImapClient.prototype.onSyncUpdate = false; | ||
@@ -409,0 +419,0 @@ /** |
104431
2224
225