Actually parse the uidnext response in the status call.

fork
Ângela Igreja 10 years ago
parent 329d46cf1c
commit efd9ad23ac

@ -1322,6 +1322,7 @@ Connection.prototype._resUntagged = function(info) {
} else if (type === 'status') { } else if (type === 'status') {
box = { box = {
name: info.text.name, name: info.text.name,
uidnext: 0,
uidvalidity: 0, uidvalidity: 0,
messages: { messages: {
total: 0, total: 0,
@ -1338,6 +1339,8 @@ Connection.prototype._resUntagged = function(info) {
box.messages.unseen = attrs.unseen; box.messages.unseen = attrs.unseen;
if (attrs.messages !== undefined) if (attrs.messages !== undefined)
box.messages.total = attrs.messages; box.messages.total = attrs.messages;
if (attrs.uidnext !== undefined)
box.uidnext = attrs.uidnext;
if (attrs.uidvalidity !== undefined) if (attrs.uidvalidity !== undefined)
box.uidvalidity = attrs.uidvalidity; box.uidvalidity = attrs.uidvalidity;
if (attrs.highestmodseq !== undefined) // CONDSTORE if (attrs.highestmodseq !== undefined) // CONDSTORE

Loading…
Cancel
Save