|
|
|
@ -411,13 +411,13 @@ ImapConnection.prototype.connect = function(loginCb) {
|
|
|
|
|
for (var i=0,len=m.attributes.length; i<len; ++i) {
|
|
|
|
|
switch (m.attributes[i].toUpperCase()) {
|
|
|
|
|
case 'RECENT':
|
|
|
|
|
ret.messages.new = parseInt(m.attributes[i + 1], 10);
|
|
|
|
|
ret.messages.new = parseInt(m.attributes[++i], 10);
|
|
|
|
|
break;
|
|
|
|
|
case 'MESSAGES':
|
|
|
|
|
ret.messages.total = parseInt(m.attributes[i + 1], 10);
|
|
|
|
|
ret.messages.total = parseInt(m.attributes[++i], 10);
|
|
|
|
|
break;
|
|
|
|
|
case 'UIDVALIDITY':
|
|
|
|
|
ret.uidvalidity = parseInt(m.attributes[i + 1], 10);
|
|
|
|
|
ret.uidvalidity = parseInt(m.attributes[++i], 10);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|