Contents

extract-msg 0.48.5

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: 678, Watchers: 678, Forks: 165, Open Issues: 13

The TeamMsgExtractor/msg-extractor repo was created 10 years ago and the last code push was 6 days ago.
The project is popular with 678 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 13 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 10.3

Django email backends and webhooks for Amazon SES, Brevo (Sendinblue), MailerSend, Mailgun, Mailjet, Mandrill, Postal, Postmark, Resend, SendGrid, SparkPost and Unisender Go