internal DSNPerRecipient(HeaderCollection fields) { // // Required Fields // Action = (DSNStandard.DSNAction)Enum.Parse(typeof(DSNStandard.DSNAction), fields.GetValue(DSNStandard.Fields.Action), true); Status = fields.GetValue((DSNStandard.Fields.Status)); FinalRecipient = DSNParser.ParseFinalRecipient(fields.GetValue((DSNStandard.Fields.FinalRecipient))); // // Optional Fields // HeaderCollection otherFields = new HeaderCollection(); otherFields.Add(fields, DSNStandard.PerRecipientOptionalFields); OtherFields = otherFields; }
internal DSNPerMessage(HeaderCollection fields) { ReportingMtaName = DSNParser.ParseReportingMTA(fields.GetValue(DSNStandard.Fields.ReportingMTA)); OriginalMessageId = fields.GetValue((DSNStandard.Fields.OriginalMessageID)); }