Sustainability of Digital Formats: Planning for Library of Congress Collections

Introduction | Sustainability Factors | Content Categories | Format Descriptions | Contact
Format Description Categories >> Browse Alphabetical List

Apple Mail Email Format

>> Back
Table of Contents
Format Description Properties Explanation of format description terms

Identification and description Explanation of format description terms

Full name Apple Mail Email Format
Description

Apple Mail Email Format (EMLX) is a file format specific to Apple Mail, the default mail application on macOS also known as Mac Mail, used to store individual email messages as plain text files. These files are commonly located in the ~/Library/Mail/Mailboxes/ directory within the Mailbox (MBOX) folder structure.

Developed by Apple, EMLX is a proprietary variation of the open standard Electronic Mail Format (EML). There is no published formal standard. The Apple Mail application employs the EMLX format for exporting emails. While Apple Mail is the primary creator of EMLX files, other applications can open and convert these files into various formats. Comments welcome.

The structure of an EMLX file is composed of three main parts:

  • Bytecount: The file begins with a line specifying the total number of bytes in the file.
  • Email Content in Multipurpose Internet Mail Extensions (MIME) Format: Following the bytecount, the file contains the actual email content in MIME format. This includes headers, body, and any attachments associated with the email.
  • plist (Apple Property List): The third part consists of an Extensible Markup Language (XML)-based property list with metadata about the email. This includes key-value pairs such as "sender" and "subject."

This structure allows for the encapsulation of an entire email message, with MIME format handling the email content and the plist providing additional metadata. The bytecount at the beginning indicates the size of the email content. Each message is stored as an individual EMLX file.

The plist blob within the EMLX file includes a "flags" field, represented by an integer. Decoding this integer provides valuable information about the email, such as its read status, whether it has been forwarded, if it's marked as junk, and more. For a detailed breakdown of the flag values and their meanings, refer to the information provided on jwz blog post "emlx flags?". Comments welcome.

Production phase Used for content in initial (by message authors), middle (by archives) or final state (by message recipients/other end users).
Relationship to other formats
    Modification of EML, Email (Electronic Mail Format). Email (Electronic Mail Format). EMLX is very closely related, technically, to EML format.
    Affinity to MBOX, MBOX Email Format
    Must have component Plist. Apple Property List. See specification and PRONOM for more. Not separately documented at this resource at this time.

Local use Explanation of format description terms

LC experience or existing holdings The Library of Congress includes EMLX files in its collections, especially in the Manuscripts and Music Divisions as well as other personal papers repositories.
LC preference See the Library of Congress Recommended Formats Statement for format preferences for email.

Sustainability factors Explanation of format description terms

Disclosure EMLX is proprietary and closed. There is little documentation.
    Documentation

About Mac Mail, from the Harvard Library Technical Services website, is the most reliable source for EMLX information.

EMLX has no official documentation and very little unofficial documentation. Comments welcome.

Adoption Used by all Apple Mail installations. Apple Mail is the native mail application for macOS, both desktop and phone, since 2005.
    Licensing and patents Proprietary to Apple. Apple licenses and certifies specific third party products and workflows. No known licensing or patents. Comments welcome.
Transparency Very transparent. EMLX is a plain text file, readable with basic text tools.
Self-documentation

EMLX files include basic metadata in a file header as well as flags for specific content. Comments welcome

External dependencies EMLX requires Apple Mail or a text editor to open. EMLX files are not meant to be manually opened, however, they are capable of being manually opened.
Technical protection considerations None.

Quality and functionality factors Explanation of format description terms


File type signifiers and format identifiers Explanation of format description terms

Tag Value Note
Filename extension emlx

Although created for Apple Mail, there is no official citation or reference to the format from Apple. The format is not mentioned in any press releases for Mac OS Tiger. There are many references to EMLX files in the Apple user support forums and elsewhere online.

About Mac Mail, from the Harvard Library Technical Services website, is the most reliable source for EMLX information.

Internet Media Type message/x-emlx
See https://www.digipres.org/formats/sources/tika/formats/#message/x-emlx
Uniform Type Identifier (Mac OS) com.apple.mail.emlx
See: https://www.wikidata.org/wiki/Q119582504.
Pronom PUID See note.  PRONOM has no corresponding entry as of January 2024.
Wikidata Title ID Q119582504
See: https://www.wikidata.org/wiki/Q119582504.

Notes Explanation of format description terms

General

Although created for Apple Mail, there is no official citation or reference to the format from Apple. The format is not mentioned in any press releases for Mac OS Tiger. There are many references to EMLX files in the Apple user support forums and elsewhere online. Comments welcome.

There are scripts available in Ruby and Python for working with and converting EMLX to MBOX.

Each EMLX file created is named with an incrementing number. Example:

~/Library/Mail/Mailboxes/inbox.mbox/Messages/

5521.emlx

5522.emlx

5523.emlx

Attachments are encoded within the message of the EMLX file.

History

This format was introduced in 2005, in Mail version 2, with the Mac OS X Tiger (10.4) operating system.

Fileformat.com states that "Mac OS X operating system adopted the existing email program, NeXTMail, created by NeXT as part of the NeXTSTEP operating system. Apple after acquiring NeXT uplifted its features and it became the now Apple Mail email application to be used as default mail client. Emails exported via Apple Mail are directly saved as EMLX files. In addition, it is the default mail client for EMLX files when someone opens these by double-clicking on Mac OS."


Format specifications Explanation of format description terms


Useful references

URLs


Last Updated: 05/20/2025