From efd9ad23ac2d5f03a327e391914e1723997d38ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=82ngela=20Igreja?= Date: Sat, 29 Mar 2014 12:41:12 +0000 Subject: [PATCH] Actually parse the uidnext response in the status call. --- lib/Connection.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Connection.js b/lib/Connection.js index 8cae9c6..6bacc05 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -1322,6 +1322,7 @@ Connection.prototype._resUntagged = function(info) { } else if (type === 'status') { box = { name: info.text.name, + uidnext: 0, uidvalidity: 0, messages: { total: 0, @@ -1338,6 +1339,8 @@ Connection.prototype._resUntagged = function(info) { box.messages.unseen = attrs.unseen; if (attrs.messages !== undefined) box.messages.total = attrs.messages; + if (attrs.uidnext !== undefined) + box.uidnext = attrs.uidnext; if (attrs.uidvalidity !== undefined) box.uidvalidity = attrs.uidvalidity; if (attrs.highestmodseq !== undefined) // CONDSTORE