|
|
|
@ -939,8 +939,10 @@ Connection.prototype._resTagged = function(info) {
|
|
|
|
|
err.textCode = info.textCode;
|
|
|
|
|
err.source = 'protocol';
|
|
|
|
|
} else if (this._box) {
|
|
|
|
|
if (req.type === 'EXAMINE' || req.type === 'SELECT')
|
|
|
|
|
this._box.readOnly = (info.textCode.toUpperCase() === 'READ-ONLY');
|
|
|
|
|
if (req.type === 'EXAMINE' || req.type === 'SELECT') {
|
|
|
|
|
this._box.readOnly = (typeof info.textCode === 'string'
|
|
|
|
|
&& info.textCode.toUpperCase() === 'READ-ONLY');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// According to RFC 3501, UID commands do not give errors for
|
|
|
|
|
// non-existant user-supplied UIDs, so give the callback empty results
|
|
|
|
|