Legacy Email Migration

Turn old .eml exports into clean, editable MJML

A proof-of-concept workflow that takes an exported email from Gmail, Yahoo, or Outlook and rebuilds it as semantic MJML — ready to drop straight into an editor.

A Frederic Anand · 3 min read · Published on Medium

The Problem It Solves

Stop rebuilding old campaigns from scratch

A quick look at what the original write-up demonstrates and why it matters for teams sitting on old email archives.

The article opens with a familiar pain point for anyone maintaining older campaigns: rebuilding a legacy email template by hand every time it needs to be reused or refreshed. The proposed fix is a proof-of-concept converter that takes a downloaded .eml file — the kind you can export from Gmail, Yahoo, or Outlook — and turns it into clean, editable MJML that's ready for an email editor or a fresh campaign.

The accompanying demo walks through the full loop end to end:

  • An .eml file is downloaded from Gmail, Yahoo, or Outlook.
  • That file is converted into clean MJML markup.
  • The resulting MJML is imported and edited live inside an email editor.

The author positions this as especially useful for teams still working with legacy HTML-based campaigns and older email archives that were never built with a modern, editor-friendly structure in mind.

How It Works

The EML → MJML workflow, in three steps

As described in the article, the process is meant to stay simple and hands-off for both you and your clients.

1

Download the EML file

Export an email from Gmail, Yahoo, or Outlook as an .eml attachment, or save it directly from the mailbox.

2

Convert EML to MJML

The tool parses the raw email — HTML, inline styles, images, links — and rebuilds it as semantic MJML, preserving:

  • Layout structure
  • Images and alt text
  • Text blocks and headings
  • Buttons and CTAs
  • Social links and icons
3

Import & customize

The resulting MJML loads into an email editor, where you or your client can:

  • Adjust spacing, colors, fonts
  • Swap images or copy
  • Add AMP support where needed
  • Export clean, responsive HTML
Why This Matters

The value case the article makes for agencies and marketers

Five points the author raises for anyone building email workflows around legacy campaigns.

01

Less time on "old-style" emails

Reuse an existing layout and structure instead of manually recreating a past campaign, freeing up time for copy, personalization, and strategy.

02

Modernize legacy archives

Old HTML emails sitting in Gmail, Yahoo, or Outlook get upgraded into MJML templates that work with modern, editor-friendly workflows.

03

A bridge from HTML to AMP

Classic HTML emails move into MJML first, then can be enhanced further with AMP components for carousels, forms, or live updates.

04

Element-aware parsing

The converter recognizes patterns like hero images, spacers, multi-column layouts, buttons, and social bars — not just a raw HTML dump.

05

Ready for editor integration

Framed as a feature that can plug into any MJML-based editor as an "Import from EML" button, without disrupting the existing UX.

How This Fits Into Your Projects

A project-ready feature module

The author — a senior email architect with 20+ years building custom HTML/AMP/MJML editors — frames this as something teams can plug straight into existing work.

  • Integrate itAdd it directly into your existing email editor as an import path.
  • Build on itFold it into your own email-builder platform or SaaS product.
  • Offer itPackage it as a specialized service for agencies revamping legacy email stacks.
  • Extend itGrow the proof-of-concept into batch processing, team workflows, or API-based integrations.

Want this adapted to your own EML files?

The author offers to adapt the demo to your specific email exports and editor requirements — reach out to talk through a production-grade version.

Email support@diybuilder.in