Merge pull request #25 from addrummond/master

Fix silly bug that I introduced which caused trailing '"' to appear in folder names returned by getBoxes()
fork
Brian White 13 years ago
commit d8b7ba72c2

@ -337,7 +337,7 @@ ImapConnection.prototype.connect = function(loginCb) {
else if (self.delim !== null) {
if (self._state.requests[0].args.length === 0)
self._state.requests[0].args.push({});
result = /^\((.*)\) (.+?) "?(.+)"?$/.exec(data[2]);
result = /^\((.*)\) (.+?) "?([^"]+)"?$/.exec(data[2]);
var box = {
attribs: result[1].split(' ').map(function(attrib) {
return attrib.substr(1).toUpperCase();

Loading…
Cancel
Save