MaildirMessage Class

A message of a Maildir folder: a file of its new or cur directory.

public sealed class MaildirMessage

Properties

NameDescription
FlagsGets the flags of the message.
FolderGets the folder of the message.
FullPathGets the path of the file of the message.
InfoGets the information of the name of the file, such as 2,RS, or null when the name has none.
IsNewGets whether the message is in the new directory: delivered, and not yet seen by a mail client.
KeyGets the unique name of the message: the name of its file, without its information (:2,FLAGS).

Gets the flags of the message.

public MaildirFlags Flags { get; }

Property value

MaildirFlags

Gets the folder of the message.

public MaildirFolder Folder { get; }

Property value

MaildirFolder

Gets the path of the file of the message.

public string FullPath { get; }

Property value

string

Gets the information of the name of the file, such as 2,RS, or null when the name has none.

public string? Info { get; }

Property value

string?

Gets whether the message is in the new directory: delivered, and not yet seen by a mail client.

public bool IsNew { get; }

Property value

bool

Gets the unique name of the message: the name of its file, without its information (:2,FLAGS).

public string Key { get; }

Property value

string

Methods

NameDescription
Load(MimeReadOptions?)Reads the message.
ToString()Returns the key of the message.

Load(MimeReadOptions?)

MaildirMessage.cs

Reads the message.

public MimeMessage Load(MimeReadOptions? options = null)

Parameters

options MimeReadOptions?
The options, or null for the default options.

Returns

MimeMessage The message.

Exceptions

EmailResourceLimitException
The message is larger than MimeReadOptions.MaxSize.

Returns the key of the message.

public override string ToString()

Returns

string The key of the message.