Developer Guide
Developer Guide
This section covers the core capabilities of aspose-email-foss 26.3 for Python. The library is organised into two main modules:
aspose.email_foss.msg— High-level MSG message API (MapiMessage,MapiAttachment,MapiRecipient)aspose.email_foss.cfb— Low-level CFB container API (CFBReader,CFBWriter,CFBDocument)
MSG File I/O
The MapiMessage class is the primary entry point. Load, create, and save MSG files:
from aspose.email_foss.msg import MapiMessage
# Load
msg = MapiMessage.from_file("input.msg")
# Create
msg = MapiMessage.create("Subject", "Body text")
# Save
msg.save("output.msg")Supported Formats
| Format | Import | Export |
|---|---|---|
| MSG (Outlook) | Yes | Yes |
| CFB (Compound File Binary) | Yes | Yes |
MSG files use CFB as their container format. The library provides both high-level MSG access and low-level CFB operations.
Topics
- Features and Functionalities: Detailed feature walkthrough with Python examples