MHTML Viewer
A TagSpaces extension allowing you to open MHTML and EML files.
Features
- Viewing of MHTML/MHT files - MHTML is a file format for saving web pages with all the images and styling information in one single file. Saving in MHTML format is natively supported by Chrome™ and Internet Explorer™ browsers.
- Viewing of EML files - EML is a file format for saving emails. It is the default email export format of email apps such as Thunderbird™ or Google Mail™.
- Reader mode, extracting only the main part of the document by stripping header, footer, and navigation if available.
- Showing the creation date of the file.
- Opening the source URL of an MHTML file.
- Finding text in the current file.
- File printing.
Dialog showing the scraping details, with the ability to open the original URL in an external browser.
Showing email exported in EML format
Used Libraries
This extension thankfully relies on the following great projects:
- mailparser - A powerful library for parsing email messages.
- Readability - A library that extracts the main content of web pages.
- Bootstrap - A popular CSS framework for responsive design.
- i18next - An internationalization framework for JavaScript.
- Mark.js - A library to highlight text in a document.
- Dompurify - A DOM-only XSS sanitizer.
Installation
This extension is packaged with any new version of TagSpaces.
Source Code
The source code of this extension is freely available on GitHub.
Development
If you want to extend this extension, please follow our general extension development guide.