mscdex/node-imap — pull request #45 by ajessup (2012-01-28 03:46:17+00:00)
Title: Adds support for APPEND in node-imap

This commit adds basic support for APPEND operations as defined in RFC 3501. This can be used to insert new messages into a mailbox (for example, to add a message in the Sent Items folder that was previously sent via SMTP).

This code has been tested against GMail. Some IMAP servers, including Gmail return the UID of the appended message in the OK response (eg. "A8 OK [APPENDUID 641429830 111] (Success)"). I haven't currently worked on parsing this out and feeding to the callback, but would be happy to look at doing so.