Skip to main content

The leightweight parser for emlx files.

Project description

Emlx

Emlx is the lightweight parser for .emlx files as used by Mail.app.

Install

Install and update using pip:

pip install emlx

Example

>>> import emlx
>>> message = emlx.read("12345.emlx")
>>> message.bytecount
1781
>>> message.data.keys()
['Message-Id', 'From', 'Mime-Version', 'Content-Type', 'Subject', 'Date', ...]
>>> message.data["Message-Id"]
'<07F45222-4A09-11EA-BBA5-5CF9389AFA5E@example.com>'
>>> message.plist
{'date-received': 1581123200, 'flags': {'read': True, ...}, ...}

History

The emlx file format was introduced by Apple in 2005. It is similar to eml-files with an added bytecount (start) and plist (end). For more, see https://en.wikipedia.org/wiki/Email#Filename_extensions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emlx-0.1.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

emlx-0.1.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page