extract_msg.structures.misc_id Module

Module contents

Miscellaneous ID structures used in MSG files that don’t fit into any of the other ID structure classifications.

class extract_msg.structures.misc_id.FolderID(data: bytes)[source]

Bases: object

A Folder ID structure specified in [MS-OXCDATA].

toBytes() bytes[source]
property globalCounter: int

An unsigned integer identifying the folder within its Store object.

property replicaID: int

An unsigned integer identifying a Store object.

class extract_msg.structures.misc_id.GlobalObjectID(data: bytes)[source]

Bases: object

A GlobalObjectID structure, as specified in [MS-OXOCAL].

toBytes() bytes[source]
property byteArrayID: bytes

An array of 16 bytes identifying the bytes this BLOB as a Global Object ID.

property creationTime: datetime

The date and time when this Global Object ID was generated.

property data: bytes

An array of bytes that ensures the uniqueness of the Global Object ID amoung all Calendar objects in all mailboxes.

property day: int

The day from the PidLidExceptionReplaceTime property if the object represents an exception. Otherwise, this is 0.

property month: int

The month from the PidLidExceptionReplaceTime property if the object represents an exception. Otherwise, this is 0.

property year: int

The year from the PidLidExceptionReplaceTime property if the object represents an exception. Otherwise, this is 0.

class extract_msg.structures.misc_id.MessageID(data: bytes)[source]

Bases: object

A Message ID structure, as defined in [MS-OXCDATA].

toBytes() bytes[source]
property globalCounter: int

An unsigned integer identifying the folder within its Store object.

property isFolder: bool

Tells if the object pointed to is actually a folder.

property replicaID: int

An unsigned integer identifying a Store object.

class extract_msg.structures.misc_id.ServerID(data: bytes)[source]

Bases: object

Class representing a PtypServerId.

Parameters:

data – The data to use to create the ServerID.

Raises:

TypeError – The data is not a ServerID.

toBytes() bytes[source]
property folderID: FolderID

The folder the message will be in.

property instance: int

Instance number that is only used in multivalue properties for searching for a specific ServerID. Will otherwise be 0.

property messageID: MessageID

A MessageID identifying a message in a folder identified by the folderID instance of this object. If the object pointed to is a folder, both properties will be 0.