EmlxMessage Class

A message of Apple Mail read from an .emlx file: the message, and the properties Apple Mail stores after it.

public sealed class EmlxMessage

Properties

NameDescription
AttachmentCountGets the number of attachments, which Apple Mail stores in the bits 10 to 15 of the flags property.
DateReceivedGets the date the message was received, from the date-received property (seconds since 1970).
FlagsGets the flags of the message, the low bits of the flags property.
IsPartialGets whether the file is a partial message (.partial.emlx): Apple Mail stores the content of its large attachments in other files, which the message does not contain.
MessageGets the message.
PropertiesGets the properties of the property list after the message, such as flags, date-received or remote-id: String, Int64, Double, Boolean, DateTimeOffset, byte arrays, lists and dictionaries.
RawFlagsGets the value of the flags property, with all its bits.

AttachmentCount

EmlxMessage.cs

Gets the number of attachments, which Apple Mail stores in the bits 10 to 15 of the flags property.

public int AttachmentCount { get; }

Property value

int

DateReceived

EmlxMessage.cs

Gets the date the message was received, from the date-received property (seconds since 1970).

public DateTimeOffset? DateReceived { get; }

Property value

DateTimeOffset?

Gets the flags of the message, the low bits of the flags property.

public EmlxFlags Flags { get; }

Property value

EmlxFlags

Gets whether the file is a partial message (.partial.emlx): Apple Mail stores the content of its large attachments in other files, which the message does not contain.

public bool IsPartial { get; }

Property value

bool

Gets the message.

public MimeMessage Message { get; }

Property value

MimeMessage

Properties

EmlxMessage.cs

Gets the properties of the property list after the message, such as flags, date-received or remote-id: String, Int64, Double, Boolean, DateTimeOffset, byte arrays, lists and dictionaries.

public IReadOnlyDictionary<string, object?> Properties { get; }

Gets the value of the flags property, with all its bits.

public long RawFlags { get; }

Property value

long