331 Commits (3d7b5e4cc8cc148a7a09e1a03bdc27aef4dea324)
 

Author SHA1 Message Date
Chotiwat Chawannakul ca317f56d9 Fix missing message structure in fetch result 12 years ago
Chotiwat Chawannakul 3ef5ad8f18 Merge branch 'master' of https://github.com/mscdex/node-imap
Conflicts:
	imap.js
12 years ago
Brian White 0135f16e47 Add mailbox name to result for status() 12 years ago
Brian White edcfbdb797 Add status command 12 years ago
Brian White 83a3008658 Rename _supports() -> _serverSupports() 12 years ago
Brian White 7efda6cb9e Misc minor changes + be less strict on non-selectable mailboxes
Closes #58
12 years ago
Brian White af0c191ec1 Better "constant" variable naming in mimeparser 12 years ago
Brian White f9c72c9323 Misc performance improvements for utility functions 12 years ago
Brian White 21e50a9887 Use string.indexOf() since we already have a stringified version of the response chunk 12 years ago
Brian White 4f8fbcbe01 Use custom message parser instead of node core's HTTP response parser
node core's HTTP response parser's header value unfolding removes any and all whitespace when concatenating lines together.

The new custom parser also removes any and all whitespace, but replaces all of said whitespace with a single space. Some message parsers behave this way also, while others choose to only remove the CRLF and preserve any other proceeding, leading whitespace.
12 years ago
Brian White 27d2ae8c8d Save message part's disposition type where available
Closes #59

Thanks @asutherland
12 years ago
Brian White 733cb24767 Revert header collection behavior such that header values are always arrays of strings instead of only when duplicate headers are found 12 years ago
Brian White a77fa792b5 Fix error when calling validateUIDList() internally. 12 years ago
Brian White 03b4cefe84 Fix more style 12 years ago
Brian White bcacc36582 Fix capatilization of Deleted flag when moving a message 12 years ago
Brian White 0c9baf755d Use node's built-in HTTP parser for headers or headers and bodies 12 years ago
Brian White 1866d4ad88 Simplify checking of server capabilities 12 years ago
Brian White 15a2e1036b Remove unused variable 12 years ago
Brian White dc45f96e21 Use lazy debugging output and some style changes / code reorganization 12 years ago
Brian White 4053d58dd9 Add RFC reference for NAMESPACE capability 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
Brian White 5cd24335e4 First go at code reorganization. 12 years ago
Chotiwat Chawannakul 0b1c66178c Always use LIST to get delimiter to support Cyrus IMAP server.
Signed-off-by: Brian White <mscdex@mscdex.net>
12 years ago
Chotiwat Chawannakul e0cc3a8d26 Always use LIST to get delimiter to support Cyrus IMAP server. 12 years ago
Brian White 402dabbeee Bump version 13 years ago
Brian White 29174e42e4 Fix connection-level error propagation 13 years ago
Brian White f2f1086ae8 Document xoauth config property 13 years ago
Brian White bad4584e50 Fix readme markdown rendering some more
Closes #65
13 years ago
Brian White 635e521ff6 Fix markdown parsing in readme 13 years ago
Brian White 1da71e1d51 style changes 13 years ago
Brian White a3ac806638 Merge pull request #57 from fstab/master
Do not overwrite pre-existing boxes in getBoxes()
13 years ago
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 d6ea43d36e Update TODO 13 years ago
Brian White 89bf36de93 Bump version 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 619034d356 Bump version 13 years ago
Brian White 2e9f05e968 Adjust link (mime.js->mimelib) in readme 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
Brian White 7f7389779a Merge pull request #53 from vedmalex/master
fixed: unlimited error loop
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 2a9dda2723 Bump version 13 years ago