Key Highlights
- Inspect low-level CFB storages and streams using
CFBReaderto access raw file geometry and directory entries. - Read property bags and MAPI properties via
MsgReaderandMapiMessage.iter_properties()for detailed message metadata. - Create new Outlook .msg files from scratch using
MapiMessage.create()without requiring Microsoft Outlook. - Extract recipients, attachments, and embedded messages directly from
MapiMessageinstances. - Convert between MSG and standard EmailMessage objects for interoperability with Python’s email ecosystem.
- Handle malformed CFB content gracefully with
CFBErrorfor robust error handling in production pipelines.
# source: snippet_0
from aspose.email_foss.msg import MapiMessage
from aspose.email_foss.cfb import CFBReader
See Also
- Inspect low-level CFB structures
- Explore the open-source library
- Convert email file formats easily
- Fix common errors quickly
- Load files with confidence
Introduction
The library supports inspecting low-level CFB storages, streams, and property bags through the CFBReader and MsgReader classes.
The library supports creating new Outlook-compatible .msg files in pure Python using the MapiMessage.create() method.
The library supports reading recipients, attachments, and embedded messages through the MapiMessage class.