python-oxmsg
Extract attachments from Outlook .msg files.
Decision gist · record as of 2026-08-14
Yes, if you need to read Outlook MSG files and extract attachments or metadata. The package is straightforward, has low install friction, and carries no known security vulnerabilities. The dormant maintenance status (557 days since last release) is a minor concern for a young Alpha project, but the recent repository activity and permissive MIT license make it a reasonable choice for read-only MSG extraction tasks. Not suitable if you need to modify or create MSG files.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low friction install with three lightweight runtime dependencies (click, olefile, typing_extensions).
- Project is dormant—last release was 557 days ago—but the repository remains active with a recent commit on 2025-02-03.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions.
last release 2025-02-03 (557 days) · last repo commit 2025-02-03 · 18 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,404,958 downloads/mo, #2,633 on PyPI
Alternatives
Verify before relying
pip install python-oxmsg
from oxmsg import Message
msg = Message.load("message.msg")
print(msg.sender)
for attachment in msg.attachments:
with open(attachment.file_name, "wb") as f:
f.write(attachment.file_bytes)- Whether the package handles all MSG format variants and edge cases reliably, given its Alpha status.
- Performance characteristics when processing large MSG files or many attachments.
- Whether dormancy (557 days since last release) signals maintenance concerns or stable maturity.
What it is and what it does
python-oxmsg is a Python library for reading Outlook MSG files and extracting their contents. It parses the binary MSG format (MS-OXMSG) to give you access to message text, metadata like sender and sent date, and any attached files. The library is read-only—it extracts data from existing MSG files but does not support modifying messages or creating new ones from scratch.
The package provides both a programmatic API (via the Message class) and a command-line utility for diagnostic inspection. It depends on click for CLI support, olefile for parsing the OLE2 container format that MSG files use, and typing_extensions for type hints. It supports Python 3.9 through 3.12 and is classified as Alpha, reflecting that it handles the core extraction use case but may not cover all MSG format edge cases.
Use it for
- Batch extract attachments from a folder of Outlook MSG files for archival or processing.
- Programmatically read email metadata (sender, subject, date) from MSG files in an automation workflow.
- Inspect MSG file structure and properties using the CLI dump command for debugging or forensic analysis.
- Integrate MSG parsing into a document management or email migration tool.
- Extract message text and metadata to index or search Outlook messages outside of Outlook.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to read Outlook MSG files and extract attachments or metadata.
The package is straightforward, has low install friction, and carries no known security vulnerabilities. The dormant maintenance status (557 days since last release) is a minor concern for a young Alpha project, but the recent repository activity and permissive MIT license make it a reasonable choice for read-only MSG extraction tasks. Not suitable if you need to modify or create MSG files.
Install
python-oxmsg on PyPI
Before you install
Low friction install with three lightweight runtime dependencies (click, olefile, typing_extensions). Project is dormant—last release was 557 days ago—but the repository remains active with a recent commit on 2025-02-03.
Requires Python 3.9 or later.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions.
Quickstart
pip install python-oxmsg
from oxmsg import Message
msg = Message.load("message.msg")
print(msg.sender)
for attachment in msg.attachments:
with open(attachment.file_name, "wb") as f:
f.write(attachment.file_bytes)
Verify before relying
- Whether the package handles all MSG format variants and edge cases reliably, given its Alpha status.
- Performance characteristics when processing large MSG files or many attachments.
- Whether dormancy (557 days since last release) signals maintenance concerns or stable maturity.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesclickolefiletyping_extensions |
| Maintenance | Dormant 557 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,404,958 / month, #2,633 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Topic :: Communications :: EmailTopic :: File FormatsTopic :: Office/Business :: Office SuitesTopic :: Software Development :: Libraries |
Evidence: python_oxmsg-0.0.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “outlook msg file parser”
- python-oxmsgParses Outlook MSG files to extract email messages, attachments, and…
- extract-msgExtracts email metadata (from, to, cc, date, subject, body) and…
- msg-parserParses Microsoft Outlook MSG email files, extracting message data and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also extract-msg · msg-parser · mail-parser · tnefparse · eml-parser · rtfparse · RTFDE · olefile · mailbits