MsgStream

Overview

MsgStream is a class in Aspose.Email FOSS for Python.

Mutable MSG stream node with raw bytes and CFB metadata.

Properties: clsid, creation_time, data, modified_time, name, state_bits.

Properties

NameTypeAccessDescription
namestrRead/WriteGets or sets the name.
databytesRead/WriteGets or sets the data.
clsidbytesRead/WriteGets or sets the clsid.
state_bitsintRead/WriteGets or sets the state bits.
creation_timeintRead/WriteGets or sets the creation time.
modified_timeintRead/WriteGets or sets the modified time.

Examples

from aspose.email_foss.msg import MsgDocument

doc = MsgDocument.from_file("message.msg")
stream = doc.root.find_stream("__properties_version1.0")
if stream:
    print(f"property stream size: {len(stream.data)}")

See Also

 English