Socket
Socket
Sign inDemoInstall

msglite

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msglite

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


Maintainers
1

msglite

Actions Status

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc