Fabian Stäber
1ee51e318a
Complete result of getBoxes()
...
When I run LIST on my IMAP server, I get something like this:
. LIST "" "*"
...
* LIST (\HasNoChildren) "." "INBOX.archiv.inbox2005"
* LIST (\HasNoChildren) "." "INBOX.archiv.inbox2006"
* LIST (\HasNoChildren) "." "INBOX.archiv.inbox2007"
* LIST (\HasNoChildren) "." "INBOX.archiv.inbox2009"
* LIST (\HasChildren) "." "INBOX.archiv"
...
The current implementation overwrites the "INBOX.archiv.inbox..."
boxes as soon as "INBOX.archiv" is processed.
This is a small fix to make sure that the previously processed
boxes are not overwritten.
13 years ago
Brian White
570a57dc15
Do not check for 'AUTH=PLAIN' capability when attempting to do plain-text authentication.
...
As per RFC 3501, all IMAP servers must implement at least plain-text authentication, whether they advertise the capability or not.
13 years ago
Brian White
ec07815fa2
Add kludge for GMail because they've stopped (at least for now) advertising plaintext auth
...
However, plaintext auth *does* still work, it's just no longer advertised. :-\
13 years ago
Brian White
3997f92ee1
Fix plain-text logins
...
Fixes #54
13 years ago
Brian White
9bbb3b59b7
Remove old, commented code
13 years ago
Brian White
5ba4638734
Relax mailbox name regex
13 years ago
Brian White
5c9343dacd
Make debug function per-instance instead of global
13 years ago
Brian White
f96816c5f6
Style changes and re-instate error message to login callback when no support auth available
13 years ago
Bruno Morency
1b50f88949
Use XLIST on instead of LIST if supported by server and stop filtering mailbox attributes when parsing the response.
13 years ago
Bruno Morency
7e3eb1059b
Support OAuth for authentication if server has AUTH=XOAUTH capability
13 years ago
vedmalex
545198b378
fixed: issue with error loop in pipe code
...
so this code make error recurrung call and as the result stack overflow when come things wrong with connection lost connection or dns lookup failed
var cleartext = pair.cleartext;
cleartext.socket = socket;
function onerror(e) {
if (cleartext._controlReleased)
cleartext.socket.emit('error', e);// in this line we call emit error event in recurring way.
}
socket.on('error', onerror);// this code the same as cleartext.socket.on('error', onerror)
13 years ago
Brian White
359498abe9
Do not modify Buffer prototype in case some other module does, with the same function name
13 years ago
Brian White
af0ca9bab4
Allow options object for append() to be completely optional
13 years ago
Brian White
2b320b12b6
Force IDLE extension support to wait for continuation from server
13 years ago
Andrew Jessup
7981e3e0e5
Removes spurious line break in APPEND
13 years ago
Andrew Jessup
85ac886d00
Ignores continuation commands due to IDLE
13 years ago
Andrew Jessup
681da750db
Strips out spurious debugger breaks
13 years ago
Andrew Jessup
189e4c4e4e
Adds correct respect for contiunation responses following APPEND
13 years ago
Andrew Jessup
0b319c31a0
Updates .append() and ._send() to support Buffers, .append() to use a configuration object, and some code tidying
13 years ago
Andrew Jessup
0d161f72fd
Merged upstream changes
13 years ago
Brian White
b0e88cfd2b
Fix sequence number-based functions and do not connect to the server before all event handlers are attached first
...
Fixes #46
Fixes #26
13 years ago
Andrew Jessup
f8f923a6d0
Addded basic support for APPEND command
13 years ago
Brian White
c77f652a28
Add namespaced sequence number-based functions and remove some unnecessary try-catch blocks
13 years ago
Jérémy Bethmont
d03b03d11c
Fixed a memory leak.
13 years ago
Rubycut
fd3ce59b8d
addKeywords is not working
13 years ago
Brian White
42b71ce503
Add sequence number to fetched messages and emit two new connection events: 'deleted' and 'msgupdate'.
13 years ago
Bruno Morency
286d2c02f4
Fixes issue #36 -- Reset _state.ext.idle.sentIdle and _state.ext.idle.timeWaited in the _reset method.
13 years ago
Brian White
e77eb8af26
Watch out for unsolicited FETCH responses
...
Fixes #11
13 years ago
Brian White
84271d0f2b
Oops
13 years ago
Brian White
6a42429b2d
Don't mutate Buffer so much and fix spacing
13 years ago
Brian White
d0d078cbe4
Added support for most of Gmail's IMAP extensions and made the server's capabilities array public
13 years ago
Alex Drummond
1d8cf00df2
Fix silly bug that I introduced which caused trailing '"' to appear in folder names returned by getBoxes()
13 years ago
Benoît Zugmeyer
0b380017fc
Allow ALL in search queries
13 years ago
Alex Drummond
164afe0bc4
Modify another regex where quotes may not always be present.
13 years ago
Alex Drummond
c1a8fedebd
Exchange doesn't always quote mailbox names -- make quotes optional in regex.
13 years ago
Brian White
8753fc28ec
Fix LIST response for Zimbra
...
Thanks @jmoyers
Closes #20
13 years ago
Brian White
7aaeeced9e
Remove unnecessary portions from regexps for mailbox status responses
13 years ago
Brian White
04753b2423
Add ability to fetch an entire email message (including headers) by specifying 'full' for the body property with fetch().
13 years ago
Brian White
d1bbfe7e5f
Fix crash during message headers transfer and fix 'UID' search.
13 years ago
Brian White
ec4111df22
Manipulate buffers instead of utf8 strings when retrieving headers or message bodies.
14 years ago
Brian White
6e99f17fc1
Fixes for malformed multipart bodies and global replacement for escape()/unescape(), and code reformat to better fit within 80 columns.
14 years ago
Brian White
a9e8763263
Fix connection timeout
14 years ago
Petr Běhan
98e04c0983
bugfix: broken _uidnext parsing in openBox
14 years ago
Brian White
ed74906dc2
Fix duplicate sending of commands bug, refactor literal data handling, and make idling a little smarter
14 years ago
Brian White
52a6d93d71
Fix overriding of defaults in fetch()
14 years ago
Brian White
e17d21f6f1
fetch() should check for a blank uids argument
14 years ago
Brian White
3b61bca20c
Allow fetching of entire raw message (headers + body) by specifying an empty string for fetch()'s body property
14 years ago
Brian White
b23bcb877a
A few fixes and some minor changes
...
Fixes:
* markSeen property for imap.fetch works again
* Queued commands were being sent before waiting for the server's response when exiting idle mode
* Dispositions for multipart subtypes are now set properly
Other changes:
* Removed the last remnants of the ugly parsing of server responses
* Don't attempt to send IDLE to the server if we are about to log out
* Some of the message/rfc822 envelope header names were renamed to match what those names that are expected
14 years ago
Brian White
ab6403735c
Simplify and fix parsing of message structures and mailbox namespaces
14 years ago
Brian White
c8a95325f0
IDLE support
...
If the IMAP server supports it, the IDLE extension will automatically be used in place of NOOP/polling when a mailbox is open. This means notifications of mailbox changes (e.g. when new mail arrives) will automatically be pushed to the client as they happen. Rejoice!
14 years ago