From 9e16442688dc761d41093bae204ca32649b22472 Mon Sep 17 00:00:00 2001 From: Brian White Date: Sun, 19 Jan 2014 02:24:17 -0500 Subject: [PATCH] Connection: fix 'mail' event argument --- lib/Connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Connection.js b/lib/Connection.js index 4671982..64b7d9d 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -1213,7 +1213,7 @@ Connection.prototype._resUntagged = function(info) { this._box.messages.total = now; if (now > prev && this.state === 'authenticated') { this._box.messages.new = now - prev; - this.emit('mail', this._box.messages.total); + this.emit('mail', this._box.messages.new); } } } else if (type === 'expunge') {