MboxMessage Class
A message of an mbox file, with the From line that starts it.
public sealed class MboxMessageProperties
| Name | Description |
|---|---|
| Content | Gets the bytes of the message, unescaped, without the From line. |
| Date | Gets the date of the From line, when it has one in the format of asctime (Mon Jan 5 09:00:00 2026), in UTC. |
| FromLine | Gets the From line that starts the message, without its line break. |
| Message | Gets the message, read when it is first accessed. |
| Offset | Gets the position of the From line in the file. |
| Sender | Gets the address of the envelope sender, the first word of the From line. |
Content
MboxMessage.csGets the bytes of the message, unescaped, without the From line.
public ReadOnlyMemory<byte> Content { get; }Property value
Date
MboxMessage.csGets the date of the From line, when it has one in the format of asctime (Mon Jan 5 09:00:00 2026), in UTC.
public DateTimeOffset? Date { get; }Property value
FromLine
MboxMessage.csMessage
MboxMessage.csGets the message, read when it is first accessed.
public MimeMessage Message { get; }Property value
Exceptions
EmailResourceLimitException- The message exceeds a limit of
MboxReadOptions.MessageOptions.
Offset
MboxMessage.csSender
MboxMessage.csMethods
| Name | Description |
|---|---|
| ToString() | Returns the From line. |