public static MailHeadModel GetMailHead(String uid, String mimeHead) { var headSet = ValueMIME.SerializeMIMEHead(mimeHead); MailHeadModel model = new MailHeadModel( uid, getName(headSet[MIMEPrefix.From]), getAddress(headSet[MIMEPrefix.From]), headSet[MIMEPrefix.Subject], getDate(headSet[MIMEPrefix.Date]), headSet[MIMEPrefix.ContentEncoding] ); return(model); }