|
|
|
@ -18,7 +18,7 @@ var CH_LF = 10,
|
|
|
|
|
RE_LISTCONTENT = /^\((.*)\)$/,
|
|
|
|
|
RE_LITERAL = /\{(\d+)\}$/,
|
|
|
|
|
RE_UNTAGGED = /^\* (?:(OK|NO|BAD|BYE|FLAGS|ID|LIST|XLIST|LSUB|SEARCH|STATUS|CAPABILITY|NAMESPACE|PREAUTH|SORT|THREAD|ESEARCH|QUOTA|QUOTAROOT)|(\d+) (EXPUNGE|FETCH|RECENT|EXISTS))(?:(?: \[([^\]]+)\])?(?: (.+))?)?$/i,
|
|
|
|
|
RE_TAGGED = /^A(\d+) (OK|NO|BAD) (?:\[([^\]]+)\] )?(.+)$/i,
|
|
|
|
|
RE_TAGGED = /^A(\d+) (OK|NO|BAD) ?(?:\[([^\]]+)\] )?(.*)$/i,
|
|
|
|
|
RE_CONTINUE = /^\+(?: (?:\[([^\]]+)\] )?(.+))?$/i,
|
|
|
|
|
RE_CRLF = /\r\n/g,
|
|
|
|
|
RE_HDR = /^([^:]+):[ \t]?(.+)?$/,
|
|
|
|
|