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.26.0.tar.gz
(24.8 kB
view hashes)
Built Distribution
Close
Hashes for msglite-0.26.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4816f6e6e4776100a0f8c93d44802d77a15d16ed03af8a5dfd99ed44a1d9774d |
|
MD5 | 60288546a5250eeb0d204c5efd607ea0 |
|
BLAKE2b-256 | 2f4a4c133baee8c8c076bff31f1858a4011faa03e2ef300135bb1d87f328a43b |