Skip to main content

msglite

Actions Status

Extracts emails and attachments saved in Microsoft Outlook's .msg files

The python package extract_msg automates the extraction of key email data (from, to, cc, date, subject, body) and the email's attachments.

Usage

You can install the package from PyPI as msglite. Then use the API as follows:

from msglite import Message

msg = Message('path/to/message.msg')
print(msg.subject)
print(msg.to)
# The API currently does not differentiate Sender and From cleanly:
print(msg.sender)
print(msg.body)

Notes on encoding

Field types:

  • 001E - PtypString8 - Non-unicode string
  • 001F - PtypString - UTF-18 LE string
  • 0102 - PtypBinary - Blob

Credits

This package is a lightweight and functionally extended fork of msg-extractor written by Matthew Walker and Ken Peterson.

Metadata

Release files for msglite 0.30.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for msglite 0.30.0
File Size Uploaded Provenance Actions
msglite-0.30.0.tar.gz 26.8 kB Without provenance Details for msglite-0.30.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for msglite 0.30.0
File Interpreter ABI Platform Actions
msglite-0.30.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for msglite-0.30.0-py2.py3-none-any.whl

Total release size: 54.4 kB

Release files / msglite-0.30.0.tar.gz

Download URL msglite-0.30.0.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cd08fca70bc862f9d68058391b6c71e110155bc5a23f3df51a48a769cb1c9ea3
BLAKE2b-256 checksum
How to use checksums
300da0aa2fff5cef504f4bd2403c0b1f0e6701ee6bd9bfe9ac8d9b8fcfa9541f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / msglite-0.30.0-py2.py3-none-any.whl

Download URL msglite-0.30.0-py2.py3-none-any.whl
Size 27.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ffd327da773844096813a7374e51c82111172c4ff1f658836bf75f8e0322e873
BLAKE2b-256 checksum
How to use checksums
7b44b03d3e29b4442821cdb133230bcecbfa0eb0d11479f413aced1efad80724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Security for msglite 0.30.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page