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.29.0.tar.gz
(24.3 kB
view details)
Built Distribution
File details
Details for the file msglite-0.29.0.tar.gz
.
File metadata
- Download URL: msglite-0.29.0.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b90a038274eee60ab98ef9e643c013efed247f8b735765a80d0bb9471dac4aaf |
|
MD5 | dd0f589ece27acf06d91af0fcf281aea |
|
BLAKE2b-256 | a2bdab1f3edc9197c2418f9efb39c806484ed090d00e46bf0bee43401cd72992 |
File details
Details for the file msglite-0.29.0-py2.py3-none-any.whl
.
File metadata
- Download URL: msglite-0.29.0-py2.py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f97bf994436363a511b8d1a743f7e6d4e6b4a9ee460bad7ae8a1ebc1076ca914 |
|
MD5 | 6f644bc6cf173fc68aca13616526cdd2 |
|
BLAKE2b-256 | 78a328cbc0bc13753a9ed5e628a88996197d648f3ea551cc3f538276d9d58547 |