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

FormatImportExport
MSG (Outlook)YesYes
CFB (Compound File Binary)YesYes

MSG files use CFB as their container format. The library provides both high-level MSG access and low-level CFB operations.


Topics

See Also

 English