Class MboxFromLine
A parsed MBOX "From " delimiter line (RFC 4155 §2). Carries the envelope sender and the delivery timestamp.
Inherited Members
Namespace: DRIT.Mail.Rfc.Mbox
Assembly: DRIT.Mail.dll
Syntax
public sealed class MboxFromLine
Constructors
View SourceMboxFromLine(string, DateTimeOffset?, string)
Initializes a new instance of the MboxFromLine class.
Declaration
public MboxFromLine(string envelopeSender, DateTimeOffset? timestamp, string rawLine)
Parameters
| Type | Name | Description |
|---|---|---|
| string | envelopeSender | The envelope sender (return path) without angle brackets. |
| DateTimeOffset? | timestamp | The delivery timestamp, or null if not present. |
| string | rawLine | The raw From line text, including the leading "From " but excluding the line terminator. |
Properties
View SourceEnvelopeSender
Gets the envelope sender (return path) without angle brackets.
Declaration
public string EnvelopeSender { get; }
Property Value
| Type | Description |
|---|---|
| string |
RawLine
Gets the raw From line text, including the leading "From " but excluding the line terminator.
Declaration
public string RawLine { get; }
Property Value
| Type | Description |
|---|---|
| string |
Timestamp
Gets the delivery timestamp, or null if the From line had no parseable timestamp.
Declaration
public DateTimeOffset? Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
Methods
View SourceToCanonicalString()
Formats this From line for writing, using ISO 8601 for the timestamp (RFC 4155 §3).
Declaration
public string ToCanonicalString()
Returns
| Type | Description |
|---|---|
| string |