Skip to content
Use with node-imap's ImapMessage. Pipe like a pro.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
imap-message-stream.js
package.json

README.md

imap-message-stream

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

Install

stable

npm install imap-message-stream

edge

npm install https://github.com/daxxog/imap-message-stream/tarball/master

Example

ImapMessageStream = require('imap-message-stream');
fetch.on('message', function(msg) {
    var ws = fs.createWriteStream('raw.email'),
        ims = ImapMessageStream(msg);

    ims.pipe(ws);
});
Something went wrong with that request. Please try again.