Key Highlights

  • Inspect low-level CFB storages and streams using CFBReader to access raw file geometry and directory entries.
  • Read property bags and MAPI properties via MsgReader and MapiMessage.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 MapiMessage instances.
  • Convert between MSG and standard EmailMessage objects for interoperability with Python’s email ecosystem.
  • Handle malformed CFB content gracefully with CFBError for 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

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.