github.com/mailhog/imap
implements an IMAP server state machine.
It attempts to encapsulate as much of the IMAP protocol (plus its extensions) as possible without compromising configurability or requiring specific backend implementations.
See MailHog-IMAP for an example implementation.
Copyright ยฉโ 2015, Ian Kent (http://iankent.uk)
Released under MIT license, see LICENSE for details.