Contents

extract-msg 0.51.1

0

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

The extract-msg Python package is a tool for extracting emails and attachments from Microsoft Outlook's .msg files. It automates the extraction of key email data and supports Python 3.8 and above. With its customization options, it's useful for data extraction and analysis from .msg files.

The package provides the command line tool extract_msg that can be used to extract attachments and parse date, time, and subject of the message. Email and attachments are extracted into a folder

Stars: 734, Watchers: 734, Forks: 173, Open Issues: 14

The TeamMsgExtractor/msg-extractor repo was created 11 years ago and the last code push was Yesterday.
The project is popular with 734 github stars!

How to Install extract-msg

You can install extract-msg using pip

pip install extract-msg

or add it to a project with poetry

poetry add extract-msg

Package Details

Author
Destiny Peterson & Matthew Walker
License
GPL
Homepage
https://github.com/TeamMsgExtractor/msg-extractor
PyPi:
https://pypi.org/project/extract-msg/
GitHub Repo:
https://github.com/TeamMsgExtractor/msg-extractor
No  extract-msg  pypi packages just yet.

Errors

A list of common extract-msg errors.

Code Examples

Here are some extract-msg code examples and snippets.

GitHub Issues

The extract-msg package has 14 open issues on GitHub

  • Typo in command-line argument parsing
  • Add method to generate htmlBody from rtfBody.
  • Signed messages only show one attachment, the smime.p7m file itself
  • Handle long file paths, expecially for deeply embeded MSG files.
  • Saving file attachments
  • Add property to grab the HTML body that is ready for conversion to PDF.

See more issues on GitHub

Related Packages & Articles

django-anymail 12.0

Django email backends and webhooks for Amazon SES, Brevo, MailerSend, Mailgun, Mailjet, Mandrill, Postal, Postmark, Resend, SendGrid, SparkPost and Unisender Go (EmailBackend, transactional email tracking and inbound email signals)