295 Commits (2e7196e4776af5687f72d5f923bd8f373d7cde86)

Author SHA1 Message Date
Brian White 2e7196e477 Merge pull request #351 from wavify/mime-decode-lws
Parser: ignore linear whitespace between consecutive mime-encoded words in header
10 years ago
Brian White 26aede8408 style change and lint 10 years ago
Brian White 6cdb81bd29 Parser: support optional language in mime encoded words (RFC2231) 10 years ago
Chotiwat Chawannakul 8249a257c7 Parser: ignore linear whitespace between consecutive mime-encoded words in header 10 years ago
Brian White 15ee85e7b9 Connection: lint 10 years ago
Brian White 060a50a6e8 Connection: add configurable authentication timeout 10 years ago
Brian White 94bd04544c Parser: check regexp success before trying to use captures 10 years ago
Brian White a607d1edae Connection: convert `bodies` specifiers to strings before parsing 10 years ago
Brian White 9e16442688 Connection: fix 'mail' event argument 11 years ago
Brian White c94cc42a84 Connection: add guard in destroy() 11 years ago
Chotiwat Chawannakul 01c855ea08 Connection: fix an issue with mailboxes that don’t support modseq (NOMODSEQ) 11 years ago
Brian White bf919af813 Connection: ensure non-empty seqno/uid lists 11 years ago
Brian White 4a56566590 Merge pull request #323 from dominikgehl/dgl/RFC6154
added special_use_attrib
11 years ago
Brian White 93308c64e5 Connection: for BODY[] part expressions, switch from string comparison to parsed expression comparison 11 years ago
Brian White 0a7a5e80ff Parser: properly handle escaped double quotes and backslashes in quoted strings 11 years ago
Brian White 609cde6ee1 Parser: don't add quoted body to attributes after we streamed it 11 years ago
Brian White 051a115444 Merge pull request #330 from juhovh/master
Remove useless _tryreads because they cause problems.
11 years ago
Brian White 6084484218 Connection: for NOOP, make sure to re-NOOP when still idle 11 years ago
Brian White 89aef1b73d Parser: check stream readable before read() 11 years ago
Juho Vähä-Herttua 130f1bea74 Remove useless _tryreads because they cause problems.
These cases are already handled in _parse function.
11 years ago
Brian White d4e7eb6257 Parser: check for non-literal bodies in FETCH 11 years ago
Dominik Gehl 38373c34d7 added special_use_attrib 11 years ago
Dominik Gehl 36a1280abd decode envelope subject 11 years ago
Dominik Gehl 8ed32d7fa9 added support for ENVELOPE fetch 11 years ago
Brian White 32445a188b lint 11 years ago
Brian White 9a961cc35c Connection: add guard when updating name of currently open box during rename 11 years ago
Brian White f83449f801 Connection: add persistentUIDs property to Box objects 11 years ago
Brian White 8d9f1871be Connection: pass just the textCode values where necessary 11 years ago
Brian White 4dfe687a55 Connection: only pass specific text codes to callbacks 11 years ago
Brian White 3c507f20bb Connection: check UIDPLUS availability before attempting a UID EXPUNGE 11 years ago
Brian White 0e07b83230 Connection: fix style 11 years ago
Brian White 302e241458 Connection: fix nested OR when searching 11 years ago
Brian White 11b37fcd8f Merge pull request #283 from wavify/tagged-ok
Pass tagged OK text code as the last argument of the callback (for APPENDUID, COPYUID, etc.)
11 years ago
Brian White 9f5ba4de8c Merge pull request #307 from dominikgehl/dgl/idExtension
support for IMAP ID extension (RFC 2971)
11 years ago
Dominik Gehl 93337c567f further improvements to ID extension support 11 years ago
Dominik Gehl 4ff1b82b9f ID support improvements 11 years ago
Brian White 9ee0f51818 connection: add additional guards for idle changing 11 years ago
Dominik Gehl b697dfe66d support for IMAP ID extension (RFC 2971) 11 years ago
Ronnie 91fd2d1512 Removed separate if for esearch result 11 years ago
Ronnie 436a2761b2 esearch should call _esearch and return data to callback. Removed space in _esearch command and put it before encode, as query already has a space 11 years ago
Dominik Gehl bf9984f063 allow flags with backslash in append
https://github.com/mscdex/node-imap/issues/186
11 years ago
Brian White 377fbc1f98 lint 11 years ago
Chotiwat Chawannakul 0e89bca78e Handle undefined quota list response when set quota on some imap server (e.g. cyrus) 11 years ago
Brian White 69a9031d7c Connection: change style for hasNonASCII() 11 years ago
Brian White d028aadfca Merge pull request #291 from kevinoid/starttls-fixes
Fix broken STARTTLS
11 years ago
Kevin Locke b73f325327 Reattach 'readable' event listener when changing streams
Parser was not unregistering the 'readable' event listener from the old
socket, nor registering it to the new socket when setSocket() was
called.  This caused event handling to stop during the STARTTLS handoff.

Signed-off-by: Kevin Locke <klocke@quantpost.com>
11 years ago
Kevin Locke 2981485551 Fix for servers with LOGINDISABLED before STARTTLS
When connecting to a server that advertises LOGINDISABLED in its
CAPABILITIES before STARTTLS, the connection raises an error and
destroys the socket before completing STARTTLS.  This is demonstrated in
the following debug output:

debug: [connection] Connected to host
debug: <= '* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED] Dovecot ready.'
debug: => 'A0 CAPABILITY'
debug: <= '* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED'
debug: <= 'A0 OK Pre-login capabilities listed, post-login capabilities have more.'
error: Error: Logging in is disabled on this server source=authentication
debug: [connection] Closed

It appears that a return after _starttls was overlooked (since _starttls
will call _login again once the STARTTLS has completed).

Signed-off-by: Kevin Locke <klocke@quantpost.com>
11 years ago
Sagar Mehta 57a80b854c switched error text to prefer whatever is in info.text field even in case of oauth error 11 years ago
Brian White a3a1d158c5 Parser: attempt workaround for broken mime encoded words
Some MUAs appear to break multi-byte characters across encoded word boundaries, which goes against RFC2047.

This change attempts to work around this by trying to concatenate broken encoded words that are separated by linear white space.
11 years ago
Raoul Wissink 1ecec69b00 Removed check for current request on EXPUNGE so event is always emitted. 11 years ago