Example #1
0
 private static Header CopyHeader(Header header, string data)
 {
     if (data != null)
     {
         if (header is AddressHeader)
         {
             header = AddressHeader.Parse(header.Name, data, AddressParserFlags.IgnoreComments);
         }
         else
         {
             header.Value = data;
         }
     }
     return(header);
 }