Extracts emails and attachments saved in Microsoft Outlook's .msg files
Project description
msglite
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
Release history Release notifications | RSS feed
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.30.0.tar.gz
(26.8 kB
view details)
Built Distribution
File details
Details for the file msglite-0.30.0.tar.gz
.
File metadata
- Download URL: msglite-0.30.0.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd08fca70bc862f9d68058391b6c71e110155bc5a23f3df51a48a769cb1c9ea3 |
|
MD5 | c051067ea3b7b31152e121bdb9519c0c |
|
BLAKE2b-256 | 300da0aa2fff5cef504f4bd2403c0b1f0e6701ee6bd9bfe9ac8d9b8fcfa9541f |
File details
Details for the file msglite-0.30.0-py2.py3-none-any.whl
.
File metadata
- Download URL: msglite-0.30.0-py2.py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd327da773844096813a7374e51c82111172c4ff1f658836bf75f8e0322e873 |
|
MD5 | c590e1fc556362db2ee014b5e7c38d4d |
|
BLAKE2b-256 | 7b44b03d3e29b4442821cdb133230bcecbfa0eb0d11479f413aced1efad80724 |