EML (E-Mail)
Feature-rich email syntax highlighting and inspection toolkit for Sublime Text 3 and TextMate 2
Installations minus removals
Upgrades
- 10,037 installs
- 7 stars
Links
Versions
0.2.3
·
eml-tmLanguage
An RFC-faithful email syntax highlighting and inspection toolkit for Sublime Text 3 and TextMate 2.

Turn raw .eml, .msg, .mbx, and .mboxz files into readable, navigable documents in Sublime Text 3 (primary) and TextMate 2 — with delivery trace highlighting, nested MIME support, embedded formats, hover previews, in-place decoding, and attachment export.
Screenshots
Sublime Text 3 (3.2.2)

TextMate 2 (2.0.23)

Highlights
- Headers & Delivery Traces — Highlights standard, authentication (
DKIM,SPF,ARC), and multi-hopReceived:headers with relay IPs, protocols, TLS details, and timestamps. - Nested MIME & Embedded Formats — Separates nested multipart sections and highlights embedded HTML, XML,
.icsinvites,.diff/.patchfiles, and attached.emlmessages. - Hover Previews (Sublime Text 3) — Preview inline Base64 images, decoded text blocks, and Local + UTC timestamps on hover.
- In-Place Decode & Export (Sublime Text 3) — Decode Base64, Encoded-Words, and Quoted-Printable right in place, or export binary and text attachments straight to disk.
- Quick Navigation & Editing — Jump through message structure with
Goto Symbol, search folders byMessage-ID, toggle comments (Cmd+//Ctrl+/), and fold MIME boundaries/comments. - Theme-Native — Uses standard
text.emlscopes so emails adapt naturally across light and dark Sublime Text 3 and TextMate 2 color schemes.
See FEATURES.md for the complete feature guide and editor comparison.
Installation
Sublime Text 3
Install EML (E-Mail) via Package Control, or clone directly into your Sublime Text 3 Packages directory (macOS example):
git clone https://github.com/mariozaizar/eml-tmLanguage.git "$HOME/Library/Application Support/Sublime Text 3/Packages/Email"
TextMate 2 (macOS)
- Download or clone this repository.
- Double-click
email.tmBundle(or right-click and choose Open With → TextMate). - Click Yes when prompted to install the Email bundle.
For Linux/Windows Sublime Text 3 paths, local development symlinks (./scripts/link_sublime.sh), and verification steps, see INSTALL.md.
FAQ
Using Sublime Text 4 or bat?
Sublime Text 4 (Build 4143+) and bat are supported by the dedicated email.sublime-syntax repository (available on Package Control as EML (E-Mail)). eml-tmLanguage focuses on Sublime Text 3 and TextMate 2 via .tmLanguage.
Why does this repository include both .YAML-tmLanguage and .tmLanguage?
email.YAML-tmLanguage is the human-readable YAML source format, while email.tmLanguage is the compiled XML property list consumed directly by Sublime Text 3 and TextMate 2 (generated reproducibly with python3 scripts/build_grammar.py). See CONTRIBUTING.md for details.
Links
- PackageControl: EML (E-Mail)
- Documentation: FEATURES.md · INSTALL.md · CHANGELOG.md · CONTRIBUTING.md
- Community & Policies: ACCESSIBILITY.md · SECURITY.md · CODE_OF_CONDUCT.md · LICENSE.md
- Sibling Packages: email.sublime-syntax (Sublime Text 4 &
bat) · language-eml (Pulsar) - Created by: @mariozaizar