613 Commits (867aa88a335a266b904e0271afa36f69af31a869)
 

Author SHA1 Message Date
Rubycut 852558acde Add installation instructions. 13 years ago
Brian White b6b71b7d9e Merge pull request #37 from rubycut/patch-1
addKeywords is not working
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 ef5ce33d43 Bump version 13 years ago
Brian White 84271d0f2b Oops 13 years ago
Brian White 7eaa12a5cf Bump version 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
Brian White bed94543fa Bump version 13 years ago
Brian White d8b7ba72c2 Merge pull request #25 from addrummond/master
Fix silly bug that I introduced which caused trailing '"' to appear in folder names returned by getBoxes()
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
Brian White 56cf51b83a Bump version 13 years ago
Brian White 690faff0f1 Merge pull request #24 from addrummond/master
Small changes to regular expressions
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. 13 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. 13 years ago
Brian White a9e8763263 Fix connection timeout 13 years ago
Brian White 3f5164b3b6 Merge pull request #10 from huancz/master.
fix parsing of EXAMINE response
13 years ago
Petr Běhan 98e04c0983 bugfix: broken _uidnext parsing in openBox 13 years ago
Brian White 38c88ff4b3 Bump version 13 years ago
Brian White ed74906dc2 Fix duplicate sending of commands bug, refactor literal data handling, and make idling a little smarter 13 years ago
Brian White 52a6d93d71 Fix overriding of defaults in fetch() 13 years ago
Brian White e17d21f6f1 fetch() should check for a blank uids argument 13 years ago
Brian White 3b61bca20c Allow fetching of entire raw message (headers + body) by specifying an empty string for fetch()'s body property 13 years ago
Brian White 6c4b229ae5 Bump version 13 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
13 years ago
Brian White ab6403735c Simplify and fix parsing of message structures and mailbox namespaces 13 years ago
Brian White 375fae406b bump version 13 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!
13 years ago
Brian White 7a9ae9f9bd Fix README markdown format so it renders correctly on github. 13 years ago
Brian White cbeb2b95c6 Fix retrieval of utf8-encoded message bodies and fetching of only message structures. 13 years ago
Brian White 92e91ca3c1 More reliable new mail event detection. 13 years ago
Brian White 658e06426c Bump version to v0.2.0 13 years ago
Vytautas Jakutis bfcacac2c0 as noted by mscdex: openBox should use the emptyFn variable instead of creating a new empty function every time when readonly and cb are undefined. 13 years ago
Vytautas Jakutis e739623172 fixing openBox method for node-0.4.0 (was broken when the argument "readOnly" was skipped by the user) 13 years ago
Vytautas Jakutis 1e1031f06d fixes the ImapConnection.getBox method.
the code is:

	console.log(params);
	var imap = new require('../submodules/node-imap/imap').ImapConnection({
		username: params.username,
		password: params.password,
		host: params.hostname,
		port: params.port,
		secure: true
	});
	imap.connect(function(r, err) {
		if(err) {
			console.log('Connection failed. Quitting.');
		} else {
			imap.getBoxes(function() {
				console.log(arguments);
				console.log('Done. Quitting.');
				imap.logout();
			});
		}
	});

the output is:

	{ hostname: '*******',
	  port: '993',
	  username: '*******',
	  password: '*******' }

	/home/tahu/workspace/mailget/submodules/node-imap/imap.js:292
	                if (!curChildren[path[i]].children)
	                                         ^
	TypeError: Cannot read property 'children' of undefined
	    at CleartextStream.<anonymous> (/home/tahu/workspace/mailget/submodules/node-imap/imap.js:292:42)
	    at CleartextStream.emit (events.js:42:17)
	    at CleartextStream._push (tls.js:257:31)
	    at SecurePair._cycle (tls.js:514:18)
	    at EncryptedStream.write (tls.js:72:13)
	    at Socket.ondata (stream.js:15:26)
	    at Socket.emit (events.js:42:17)
	    at Socket._onReadable (net.js:649:14)
	    at IOWatcher.onReadable [as callback] (net.js:156:10)
13 years ago
Brian White 0ed5b5b32f Update TODO 13 years ago
Brian White 5aaa70e68f 0.4.0 compatibility. 0.2.x no longer supported. 13 years ago
Brian White d9e705dea8 Modify fetch() to be async and to no longer buffer message bodies. Fix NOOP handling. 13 years ago
Brian White b9718b5402 Add configurable debug function in constructor options and incorporate a few fixes. 13 years ago
Brian White 093f95006c Initial commit of package.json. 14 years ago