2using System.Collections.Generic;
12 private string originalEnvelopeId =
null;
13 private string reportingMta =
null;
14 private string reportingMtaType =
null;
15 private string dsnGateway =
null;
16 private string dsnGatewayType =
null;
17 private string receivedFromMta =
null;
18 private string receivedFromMtaType =
null;
19 private DateTimeOffset? arrivalDate =
null;
36 protected override bool Parse(
string Key,
string Value)
38 switch (Key.ToUpper())
40 case "ORIGINAL-ENVELOPE-ID":
41 this.originalEnvelopeId = Value;
45 if (this.
ParseType(ref Value, out this.reportingMtaType))
47 this.reportingMta = Value;
54 if (this.
ParseType(ref Value, out this.dsnGatewayType))
56 this.dsnGateway = Value;
62 case "RECEIVED-FROM-MTA":
63 if (this.
ParseType(ref Value, out this.receivedFromMtaType))
65 this.receivedFromMta = Value;
74 this.arrivalDate = DTO;
Helps with parsing of commong data types.
static bool TryParseRfc822(string s, out DateTimeOffset Value)
Parses a date and time value encoded according to RFC 822, §5.
Base class for DSN field classes.
bool ParseType(ref string Value, out string Type)
Parses a type value prefixed to the field value.
Information fields for the message.
string ReportingMtaType
Type of Reporting Message Transfer Agent
string DsnGatewayType
Type of Delivery Status Notification Gateway
DateTimeOffset? ArrivalDate
Arrival Date
string ReceivedFromMta
Received from Message Transfer Agent
override bool Parse(string Key, string Value)
Parses a field
string DsnGateway
Delivery Status Notification Gateway
PerMessageFields(string[] Rows)
Information fields for the message.
string ReportingMta
Reporting Message Transfer Agent
string OriginalEnvelopeId
Original envelope identifier
string ReceivedFromMtaType
Type of Received from Message Transfer Agent