Merge pull request #370 from angelaigreja/master

Actually parse the uidnext response in the status call.
fork
Brian White 10 years ago
commit 6c36100d70

@ -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

Loading…
Cancel
Save