Skip to content

Commit

Permalink
Added README
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgns committed Oct 7, 2010
1 parent 6fb2226 commit 1eb79ef
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
@@ -0,0 +1,23 @@
parser_email
============

I needed a parser for Email, so I wrote one. At the moment it doesn't do much but parse the headers. Feel free to contribute.

Example
-------
var fs = require('fs')
, sys = require('sys')
, em_parse = require('./parser_email')

stream = fs.ReadStream(file);
stream.setEncoding('ascii');
stream.on('data', function(data) {
mail += data;
});
stream.on('close', function () {
parser = em_parse.parser_email();
parser.setContent(mail);
parser.parseMail();
});


0 comments on commit 1eb79ef

Please sign in to comment.