The NPM module "mailparser" (by Andris Reinman in Estonia) would be perfect for this. However, mailparser wants Node version 6.0 but I can only use Node version 4.3. This is because the e-mail parsing must execute within Amazon Web Services (AWS). Node version 4.3 is the only version AWS supports currently.
Asked
Active
Viewed 1,297 times
1
-
Try to upgrade your node.js version: http://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version or install an older mailparser: http://stackoverflow.com/questions/15890958/how-do-i-install-a-previous-version-of-an-npm-package – quanfoo Feb 09 '17 at 13:54
-
The solution that worked for me is "simple-mailparser-javascript" by Florian Narr of Austria. Jed Sundwall of AWS pointed me to it here: https://github.com/floscom/simple-mailparser-javascript/blob/master/README.md – Eliot Christian Feb 10 '17 at 21:09