fix parsing resp-text-code on tagged error responses

fork
mscdex 12 years ago
parent 6de8d3834e
commit d7366a9202

@ -650,7 +650,7 @@ ImapConnection.prototype.connect = function(loginCb) {
err.request = cmdstr; err.request = cmdstr;
} else } else
return requests[0].callback(); return requests[0].callback();
} else if (m = /^A\d+ (NO|BAD) (?:\[(.+)\] )?(.+)$/i.exec(line)) { } else if (m = /^A\d+ (NO|BAD) (?:\[(.+?)\] )?(.+)$/i.exec(line)) {
// m[1]: error type // m[1]: error type
// m[2]: resp-text-code // m[2]: resp-text-code
// m[3]: message // m[3]: message

Loading…
Cancel
Save