All Projects → pgherveou → mailstrip

pgherveou / mailstrip

Licence: other
node.js email reply parser

Programming Languages

coffeescript
4710 projects
javascript
184084 projects - #8 most used programming language

mailstrip

simple function that intent to strip signature and history from an email to return only the content body. Its just a simple list of regexp that defines where the email need to be truncated each regexp has its own test.

Feel free to contribute by adding, a regexp and a testcase (tests are built with [mocha] 1 & [chai] 2)

install

npm install mailstrip

usage

var mailstrip = require('mailstrip')
  , content = mailstrip(emailBody);

test

# build first
$ cake build

# run mocha
$ mocha
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].