node.js email reply parser
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib better regex Apr 4, 2014
src better regex Apr 4, 2014
test better regex Apr 4, 2014
.gitignore rename May 25, 2012
.npmignore rename May 25, 2012
Cakefile readme May 25, 2012 removed sender email Jun 13, 2012
index.js rename May 25, 2012
package.json better regex Apr 4, 2014


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)


npm install mailstrip


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


# build first
$ cake build

# run mocha
$ mocha