From 1ecec69b0082a01065ded102c29df0e121f9a3b7 Mon Sep 17 00:00:00 2001 From: Raoul Wissink Date: Tue, 27 Aug 2013 20:33:27 +0200 Subject: [PATCH] Removed check for current request on EXPUNGE so event is always emitted. --- lib/Connection.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Connection.js b/lib/Connection.js index 778f655..11ea916 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -1140,8 +1140,7 @@ Connection.prototype._resUntagged = function(info) { if (this._box) { if (this._box.messages.total > 0) --this._box.messages.total; - if (!this._curReq) - this.emit('expunge', info.num); + this.emit('expunge', info.num); } } else if (type === 'ok') { if (this.state === 'connected' && !this._curReq)