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