From 1d8cf00df2303388626254985a85c7f69050f668 Mon Sep 17 00:00:00 2001 From: Alex Drummond Date: Wed, 7 Sep 2011 18:07:45 +0100 Subject: [PATCH] Fix silly bug that I introduced which caused trailing '"' to appear in folder names returned by getBoxes() --- imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap.js b/imap.js index 2957d6f..c920444 100644 --- a/imap.js +++ b/imap.js @@ -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();