postal-mime – source

Front-end Email Parser Demo

This demo takes a raw RFC822 formatted email message file (.eml format), parses and decodes its contents and renders the email on this page.

Data never leaves your computer as parsing is done in the browser. There is no server component.

  • Tested on the latest Chrome, Firefox and Safari.
  • Fast and efficient, built for the browser environment.
  • It can be run in Web Workers.
  • Uses ArrayBuffers for binary data like attachments.
  • Can decode Base64, Quoted-Printable, MIME Encoded Words, Flowed Format, and even Parameter Value Continuations for those emojis in attachment filenames.
  • Can properly handle charsets for any supported transfer encoding.
  • Email for parsing can be a String, an ArrayBuffer, or a File input element.