imap-message-stream

Use with node-imap's ImapMessage. Pipe like a pro.

imap-message-stream

Use with node-imap's ImapMessage. Pipe like a pro.

stable

npm install imap-message-stream

edge

npm install https://github.com/daxxog/imap-message-stream/tarball/master
ImapMessageStream = require('imap-message-stream');
fetch.on('message', function(msg) {
    var ws = fs.createWriteStream('raw.email'),
        ims = ImapMessageStream(msg);
    
    ims.pipe(ws);
});