Home > multipart.js

multipart.js

Multipart.js is a project mainly written in JavaScript, it's free.

Javascript module for parsing multipart emails

mailmod

mailmod is a javascript module for parsing multipart emails client side. It is designed to be as simple and object-oriented as possible. An email is a wrapper for a part. Every part has a header, body and sometimes nested parts.

Demo

index.html

Next Steps

Next steps might be to parse 'Received' headers into an array in the Header object. That would allow easy access the 'Received' header chain for features like spam detection. Perhaps also add support for a queue or collection of emails. And add some methods to Email object for accessing mime type content, attachments, etc.

License

This software may be redistributed under the terms specified in the MIT-LICENSE file.