extract_msg.msg_classes.calendar Module

Module contents

class extract_msg.msg_classes.calendar.Calendar(path, **kwargs)[source]

Bases: CalendarBase

A calendar object.

Supports all of the options from MSGFile.__init__() with some additional ones.

Parameters:
  • recipientSeparator – Optional, separator string to use between recipients.

  • deencapsulationFunc – Optional, if specified must be a callable that will override the way that HTML/text is deencapsulated from the RTF body. This function must take exactly 2 arguments, the first being the RTF body from the message and the second being an instance of the enum DeencapType that will tell the function what type of body is desired. The function should return a string for plain text and bytes for HTML. If any problems occur, the function must either return None or raise one of the appropriate exceptions from extract_msg.exceptions. All other exceptions must be handled internally or they will not be caught. The original deencapsulation method will not run if this is set.

property clientIntent: ClientIntentFlag | None

A set of the actions a user has taken on a Meeting object.

property fExceptionalAttendees: bool | None

Indicates that it is a Recurring Calendar object with one or more excpetions and that at least one of the Exception Embedded Message objects has at least one RecipientRow structure.

SHOULD NOT be set for any Calendar object other than that of the organizer’s.

property reminderDelta: int | None

The interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object.

property reminderFileParameter: str | None

The full path (MAY only specify the file name) of the sound that a client SHOULD play when the reminder for the Message Object becomes overdue.

property reminderOverride: bool

Specifies if clients SHOULD respect the value of the reminderPlaySound property and the reminderFileParameter property.

property reminderPlaySound: bool

Specified that the cliebnt should play a sound when the reminder becomes overdue.

property reminderSet: bool

Specifies whether a reminder is set on the object.

property reminderSignalTime: datetime | None

The point in time when a reminder transitions from pending to overdue.

property reminderTime: datetime | None

The time after which the user would be late.

filename: str | None