diff --git a/lib/imap.js b/lib/imap.js index afbd9f0..461306e 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -22,7 +22,7 @@ var CRLF = '\r\n', BOXSELECTING: 3, BOXSELECTED: 4 }, - RE_LITHEADER = /(?:((?:BODY\[.*\](?:<\d+>)?)?|[^ ]+) )?\{(\d+)\}$/i, + RE_LITHEADER = /(?:((?:BODY\[.*\](?:<\d+>)?)?|[^ ]+) )?\{(\d+)\}\r\n/i, RE_UNRESP = /^\* (OK|PREAUTH|NO|BAD)(?:\r\n|(?: \[(.+?)\])?(?: (.+))?)$/i, RE_TAGGED_RESP = /^A\d+ (OK|NO|BAD) (?:\[(.+?)\] )?(.+)$/i, RE_TEXT_CODE = /([^ ]+)(?: (.*))?$/,