JSMime is a MIME parsing and composition library that is written completely in JavaScript using ES6 functionality and WebAPIs (where such APIs exist). There are a few features for which a standardized WebAPI does not exist; for these, external JavaScript libraries are used.
The MIME parser consists of three logical phases of translation:
The first stage is located in mimeparser.js
. The latter stages have yet to be
implemented.
This code depends on the following ES6 features and Web APIs:
As APIs require some use and experimentation to get a feel for what works best, the APIs may change between successive version updates as uses indicate substandard or error-prone APIs. Therefore, there will be no guarantee of API stability until version 1.0 is released.
This code is being initially developed as an effort to replace the MIME library within Thunderbird. New versions will be released as needed to bring new support into the Thunderbird codebase; version 1.0 will correspond to the version where feature-parity with the old MIME library is reached. The set of features which will be added before 1.0 are the following:
Other features than these may be added before version 1.0 is released (most notably TNEF decoding support), but they are not considered necessary to release a version 1.0.