20 Commits (e73962317293362be8c10e092199eaefb2f73e6e)
 

Author SHA1 Message Date
Vytautas Jakutis e739623172 fixing openBox method for node-0.4.0 (was broken when the argument "readOnly" was skipped by the user) 14 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)
14 years ago
Brian White 0ed5b5b32f Update TODO 14 years ago
Brian White 5aaa70e68f 0.4.0 compatibility. 0.2.x no longer supported. 14 years ago
Brian White d9e705dea8 Modify fetch() to be async and to no longer buffer message bodies. Fix NOOP handling. 14 years ago
Brian White b9718b5402 Add configurable debug function in constructor options and incorporate a few fixes. 14 years ago
Brian White 093f95006c Initial commit of package.json. 14 years ago
Brian White 2a6d162025 More refactoring, fixes, and additional features.
copy(), move(), fetch(), *Flags(), and *Keywords() methods now allow multiple message IDs.

move() now actually expunges the original message after copying, rather than merely setting the Deleted flag.

Removed command-specific items from the global state data and greatly simplified the populating of callback arguments.

Smarter literal data handling.

search() no longer goes kaput when no messages match the given criterion.

fetch() now always passes an Array to the callback.

Only pass the mailbox object to the callback for openBox() and renameBox().

Added UID criteria for search().

Fixed parsing of FETCH responses and added the message ID to the object generated by the FETCH parser.
14 years ago
Brian White 1519eb3043 Lots of additions and fixes.
Mailbox namespaces (if supported by the server) are now available as a property of ImapConnection and is automatically populated right after login.

The server's (top-level) mailbox hierarchy delimiter is also now available as a property of ImapConnection.

Reverted changes to allow reuse of an ImapConnection instance (for now).

Mailbox and message flags now no longer include the backslash prefix. Additionally, the preceding backslash for flags is not needed for functions that accept flags.

Added additional mailbox-specific methods: getBoxes, addBox, delBox, and renameBox.

Added additional message-specific methods: addKeywords, delKeywords, copy, and move.

Added keyword search option.

Refactored parsing functions a bit to make things a little more DRY.
14 years ago
Brian White 4af7472a7b Implement "OR" for message search. 14 years ago
Brian White e45b904800 Implemented configurable connection timeout.
Update and fix for README too.
14 years ago
Brian White a10f9539f0 Fix README layout issue. 14 years ago
Brian White 09b2fe0968 Swap out regex used for parsing FETCH responses for a real parser. Not all IMAP servers respond with the requested FETCH data in the same order. 14 years ago
Brian 0bc8f47e97 Added the ability to specify a byte range when fetching a message's (raw or part) body. Fixed a bug that was causing flags to not be added or removed at all. Lastly, a list of available permanent flags for the current mailbox is now available under the permFlags property of the mailbox object. 14 years ago
Brian 0c5ed3df53 Added support for IMAP STORE and EXPUNGE commands, fixed parsing of dispositions with NIL parameters in BODYSTRUCTUREs, and fixed the regex for capturing the BODYSTRUCTURE sent by the server. 14 years ago
Brian c45ab05455 Fixed error in README. 14 years ago
Brian e87b527fc3 Add license. 14 years ago
Brian 392b42bd3f A few more README changes. 14 years ago
Brian 66f3d87e18 Fix README style issues. 14 years ago
Brian 0d593c4b0c Initial commit. 14 years ago