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;