Commit graph

3809 commits

Author SHA1 Message Date
Jim Nelson
e56a6a599a Further fleshed out FETCH support.
Implemented a first stab at buffer management for IMAP literals.  Added FETCH decoding of various RFC822 elements.  Implemented a crude readmail program which will dump the full RFC822 message of any message in a mailbox.
2011-05-13 18:38:37 -07:00
Jim Nelson
e2d339dc4f Expanded and improved FETCH response decoding.
Library now uses an extensible system for decoding the various structured data that FETCH returns.  This system may be expanded later for decoding other CommandResponses (although FETCH is the command most in need of this).  Also created an RFC822 directory for data structures and code to deal with mail messages and a common directory for code that is used throughout the library but doesn't belong to util as they're "core" classes.
2011-05-13 12:44:28 -07:00
Jim Nelson
4778771c3d Updated console to accept multiple data item types for the "fetch" command. 2011-05-11 15:55:52 -07:00
Jim Nelson
fb577a98ab send_command_async() in ClientSession.
send_command_async() is now integrated into the ClientSession state machine.
2011-05-06 17:23:42 -07:00
Jim Nelson
42247df62b ClientSession improvements
Fleshed out the ClientSession state machine to follow the session state graph described by the IMAP specification.  ClientSession is now firmly a single-connection object that tracks the server state appropriately.  A higher-level class will need to be defined that manages multiple sessions (for when dealing with multiple folders, monitoring, etc.)
2011-05-06 13:19:32 -07:00
Jim Nelson
a43ab81fdf Improvements to Serializer and Deserializer
The input mode for Deserializer meant that the caller needed to manage the input stream and push data in an appropriate way; this is error-prone.  Now Deserializer manages the input stream and the modes it must be read from.  Serializer still works in a similar fashion as before, but now it deals with literal data more efficiently, writing it to the output stream directly (via splice_async()) rather than into the in-memory temporary buffer.  Serializable's serialize() method is now async, meaning that all serialization can occur asynchronously, which is how we want it going forward.
2011-05-04 17:20:17 -07:00
Jim Nelson
cbe3440fef Response.vala -> ServerResponse.vala 2011-04-14 01:16:40 +00:00
Jim Nelson
6433ebfa5b Further development building the layers of IMAP decode, connectivity, and session management. First-stab implementation of a preliminary Engine API. Tons of work to go and tons of clean-up to make what's here more robust and more efficient. 2011-04-14 01:15:05 +00:00
Jim Nelson
e3cab0804b Email client ho! 2011-04-11 23:16:21 +00:00