private EMail(IEnumerable<KeyValuePair<String, String>> MailHeader)
{
_Header = new List<KeyValuePair<String, String>>(MailHeader);
foreach (var KVP in _Header)
{
switch (KVP.Key.ToLower())
{
case "from": this.From = EMailAddress. Parse(KVP.Value); break;
case "to": this.To = EMailAddressList.Parse(KVP.Value); break;
case "cc": this.Cc = EMailAddressList.Parse(KVP.Value); break;
case "bcc": this.Bcc = EMailAddressList.Parse(KVP.Value); break;
case "replyto": this.ReplyTo = EMailAddressList.Parse(KVP.Value); break;
case "subject": this.Subject = KVP.Value ; break;
case "date": this.Date = DateTime. Parse(KVP.Value); break;
case "message-id": this.MessageId = MessageId. Parse(KVP.Value); break;
}
}
}