Skip to main content

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

Project description

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.

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

msglite-0.27.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

msglite-0.27.0-py2.py3-none-any.whl (25.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file msglite-0.27.0.tar.gz.

File metadata

  • Download URL: msglite-0.27.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for msglite-0.27.0.tar.gz
Algorithm Hash digest
SHA256 9c9c99ff46d1e3ee05775ee5b98d627a49aa386b2d2ca452cfdac2e97f5b8e58
MD5 755f24d6eee63283eb3be1bfa735dc7f
BLAKE2b-256 862337f75934bda74454d10b9fec5e4e4b3ccb464d37b0fb40b4efbd983cc411

See more details on using hashes here.

File details

Details for the file msglite-0.27.0-py2.py3-none-any.whl.

File metadata

  • Download URL: msglite-0.27.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for msglite-0.27.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2aa0c9662478467425a28a224bf88411dc43b8670dfeef19021f37631b602175
MD5 06e8707bca29fcf12e8659d38c26b592
BLAKE2b-256 20a75812c8ebb5f7a93551555c7123cb7b75e898442f0a6ac3ecf7ca87eb17d5

See more details on using hashes here.

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