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') {