• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class MboxFromLine

A parsed MBOX "From " delimiter line (RFC 4155 §2). Carries the envelope sender and the delivery timestamp.

Inheritance
object
MboxFromLine
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.Mbox
Assembly: DRIT.Mail.dll
Syntax
public sealed class MboxFromLine

Constructors

View Source

MboxFromLine(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 Source

EnvelopeSender

Gets the envelope sender (return path) without angle brackets.

Declaration
public string EnvelopeSender { get; }
Property Value
Type Description
string
View Source

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
View Source

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 Source

ToCanonicalString()

Formats this From line for writing, using ISO 8601 for the timestamp (RFC 4155 §3).

Declaration
public string ToCanonicalString()
Returns
Type Description
string
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX