imapseagull
IMAP Server, NodeJS
Supported all commands of IMAP4rev1, but might be a bit buggy.
Based on https://github.com/andris9/hoodiecrow with multiusers support, MongoDB integration, MailParser (https://github.com/andris9/mailparser), MailComposer (https://github.com/andris9/mailcomposer), but has some rudiments.
Usage example
First of all, install needed packages:
npm install imapseagull imapseagull-storage-mongo imap-handler
Later we can write some code to initialize example IMAP Server:
var IMAPServer = AppStorage = fs = path = ; var NAME = 'test.com'; var storage = name: NAME debug: true // directory to keep attachments from emails attachments_path: path // connection string for mongo connection: 'mongodb://localhost:27017/test.com?auto_reconnect' // collections names messages: 'emails' users: 'users'; // function 'init' specified into AppStorage to provide availability to redefine itstorage;