Matthias Biggeleben
941b071f80
Parser: fix IDLE parsing
...
Dovecot might answer DONE with some statistics:
IDLE OK Idle completed (0.001 + 0.093 + 0.092 secs).
The plus character passes RE_PRECEDING which leads to dead end
code-wise.
8 years ago
Suraj Sharma
c2a859727d
Parser: handle tagged responses without response code and/or other text
9 years ago
Craig Paterson
3051724f85
lib: add support for retrieving special-use mailboxes
9 years ago
Brian White
5d2d9227e9
test: fix parser tests
9 years ago
Eric Pinzur
b607d5fa7d
Parser: fixed exception when parsing invalid bodystructure
10 years ago
Chotiwat Chawannakul
36f2290a0c
Parser: ignore invalid first line that starts with a whitespace
10 years ago
Brian White
ee032e2385
test: turn off debug output
10 years ago
Brian White
8376f212e6
Parser: ensure no socket read if push() calls _read() during body finish
...
This fixes an edge case where the following happens:
* a body stream had data pushed to it such that the highWaterMark was reached
* when the body stream buffer dips below highWaterMark, _read() is called
* _read() tries to read more data from the socket, which pushes the last part of the body
* the last body part push() again calls _read() which in turn reads more data from the socket
* at this point the parser state is not stable because _body._read and _body are not reset yet, this causes the parser to potentially try to start reading the beginning of a response in the middle of the data for another fetch result for example
Fixes #345
10 years ago
Brian White
42a486d2df
Parser: decode names in envelope
10 years ago
Brian White
48871df508
Connection: fix IDLE for enqueue after next tick
10 years ago
Brian White
1fc2d7a089
Connection: wait for continuation before DONE
10 years ago
Brian White
05dd60ebb6
Parser: improve quoted string escaping
10 years ago
Chotiwat Chawannakul
4d3da4ab0f
Parser: fix base64 decoding of multi-byte character
11 years ago
Chotiwat Chawannakul
c159c112b1
Parser: join only consecutive q-encoded words
11 years ago
Chotiwat Chawannakul
b630ed05ce
Parser: fix premature decoding of encoded words ending with an incomplete multi-byte character
11 years ago
Brian White
397836e94c
test: fix test to reflect change in parsing behavior
11 years ago
Brian White
2e7196e477
Merge pull request #351 from wavify/mime-decode-lws
...
Parser: ignore linear whitespace between consecutive mime-encoded words in header
11 years ago
Brian White
6cdb81bd29
Parser: support optional language in mime encoded words (RFC2231)
11 years ago
Chotiwat Chawannakul
8249a257c7
Parser: ignore linear whitespace between consecutive mime-encoded words in header
11 years ago
Brian White
0a7a5e80ff
Parser: properly handle escaped double quotes and backslashes in quoted strings
11 years ago
Brian White
d4e7eb6257
Parser: check for non-literal bodies in FETCH
11 years ago
Alex Indigo
16dfe6a894
#276 Made parseHeader parse only header and ignore message's body + test.
11 years ago
mscdex
c7f5171cb2
test: use lowercased filenames in test runner
11 years ago
mscdex
4729de2dab
Parser: fix header parsing so that folded whitespace between adjacent MIME encoded-words is ignored
11 years ago
mscdex
739236fa7a
test: update simulated connection tests
11 years ago
mscdex
8c68fcc23d
Parser: relax continuation response checking for broken IMAP server implementations
11 years ago
Ross Johnson
d932d3db56
Fix crashing fetch tests by setting keepalive = false
...
When keepalive = true (the default), additional IDLE requests are sent
to the IMAP server. The mock IMAP servers in the tests are not set up
to respond to the IDLE request.
11 years ago
mscdex
977484ce7e
lint
12 years ago
mscdex
409577fdf8
add support for QUOTA
12 years ago
mscdex
008332036f
add support for ESEARCH
12 years ago
mscdex
f176494188
test: add Connection tests for split fetch responses
12 years ago
mscdex
5eb8334553
module rewrite
12 years ago
Brian White
27d2ae8c8d
Save message part's disposition type where available
...
Closes #59
Thanks @asutherland
12 years ago
Brian White
36e3a1743c
Add namespace parsing tests
12 years ago
Brian White
46258a961d
Adjust style for FETCH response parsing tests
12 years ago
Brian White
82bf5911ac
Add FETCH response parsing tests
12 years ago