PropertyEntryFixedLength

PropertyEntryFixedLength

Overview

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

Fixed-length property stream entry containing property tag, flags, and inline 8-byte value payload.

This class provides 3 methods for working with PropertyEntryFixedLength objects in Python programs. Available methods include: is_mandatory, is_readable, is_writable. All public members are accessible to any Python application after installing the Aspose.Email FOSS for Python package. Properties: flags, property_tag, value.

Properties

NameTypeAccessDescription
property_tagintReadGets the property tag.
flagsintReadGets the flags.
valuebytesReadGets the value.

Methods

SignatureDescription
is_mandatory() → boolReturns true if mandatory is set.
is_readable() → boolReturns true if readable is set.
is_writable() → boolReturns true if writable is set.

Examples

from aspose.email_foss.msg import MsgReader

with MsgReader.from_file("message.msg") as reader:
    for entry in reader.iter_top_level_fixed_length_properties():
        print(f"tag=0x{entry.property_tag:08X} flags=0x{entry.flags:08X} value={entry.value.hex()}")
        print(f"  readable={entry.is_readable()} writable={entry.is_writable()}")

See Also

 English