From a1227bd96694c19f7d27084a3b7d928a843f9e87 Mon Sep 17 00:00:00 2001 From: Chotiwat Chawannakul Date: Tue, 4 Sep 2012 15:59:16 +0700 Subject: [PATCH] Fix unexpected continuation error when APPEND --- lib/imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imap.js b/lib/imap.js index e9eb388..2db375c 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -539,7 +539,7 @@ ImapConnection.prototype.connect = function(loginCb) { var args = requests[0].cbargs, cmdstr = requests[0].cmdstr; if (line[0] === '+') { - if (requests[0].cmd === 'APPEND') { + if (requests[0].cmd !== 'APPEND') { err = new Error('Unexpected continuation'); err.type = 'continuation'; err.request = cmdstr;