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.26.1.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for msglite-0.26.1.tar.gz
Algorithm Hash digest
SHA256 b0494f321406e2bfa3eb80ddd79bac3af3f6687ce9f7824ac7c29c3bd0edd37f
MD5 3f3809f582f9ce037315a88e8b9b0df1
BLAKE2b-256 fca6df8fd87bfd1f091b0093392459f8572f821505254b165a6ee35e992623c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msglite-0.26.1-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/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for msglite-0.26.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c16a09c2fd98628fa9bdeaa16c663e2897ea3a8bbdb2ebd34b16807ab4fd86e1
MD5 f01eba2ab3ae44c1fd516a40929b2900
BLAKE2b-256 482d51d9c6d041d8e0354dc663925982c21605afe614a23bd2c005c3e839ad0f

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