magical-obama22 downloadsView .eml, .emlx, .mbox and Outlook .msg email files directly in your vault, with attachments, inline images and remote-content blocking.
Open email files directly in Obsidian, the same way you open PDFs or Markdown notes.

| Format | Source |
|---|---|
.eml |
Standard RFC 822 / MIME (Thunderbird, Gmail export, most clients) |
.emlx |
Apple Mail |
.mbox |
Mailbox archives (Google Takeout, Thunderbird); shows a filterable message list |
.msg |
Microsoft Outlook |
javascript: links, meta refreshes and embedded frames are removed.cid:) images are shown in place..eml and .msg attachments open in the viewer too.subject, from, to, cc, date, attachments and a source link as properties, and the body converted to Markdown. Available from the view toolbar, the command palette and the file context menu.![[message.eml]] shows a card with the subject, sender, date, attachment count and a preview, instead of the bare filename. Click it to open the email. This uses an undocumented Obsidian API, so it can be turned off in settings.In Obsidian, open Settings → Community plugins → Browse, search for Email Viewer, then install and enable it. You can also find it on the Obsidian community plugin site.
To install manually, download main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/email-viewer/, then enable Email Viewer under Settings → Community plugins.
The plugin makes no network requests of its own and collects no data. Remote images in emails are blocked unless you choose to load them for a message, or turn blocking off in settings.
The plugin never reads your clipboard. It writes to it only when you choose Copy address or Copy name and address from the menu on an address in an email's header.
npm install
npm run dev # rebuild on change
npm test # parser tests against fixtures in test/fixtures
npm run lint # Obsidian's review rules (eslint-plugin-obsidianmd)
To release: npm version patch (or minor/major) updates manifest.json and versions.json, then git push --follow-tags. The GitHub workflow builds the plugin and publishes the release.
src/parse.ts: turns every format into one ParsedEmail model (postal-mime for MIME, @kenjiuno/msgreader for Outlook). It has no Obsidian dependency.src/html.ts: sanitises the HTML, applies the CSP, resolves cid: images and detects remote content.src/view.ts: the FileView (message rendering, mbox list, attachments).src/embed.ts: the preview card for ![[…]] embeds.src/main.ts: plugin registration, commands, Create note.src/shims/iconv-lite.ts: a small TextDecoder-based replacement for iconv-lite. It keeps the bundle small (~175 KB) and mobile-compatible.The sample .msg files in test/fixtures come from the test suite of msgreader.