MimeKit.MessagePartial.CloneMessage C# (CSharp) Метод

CloneMessage() статический приватный Метод

static private CloneMessage ( MimeMessage message ) : MimeMessage
message MimeMessage
Результат MimeMessage
		static MimeMessage CloneMessage (MimeMessage message)
		{
			var options = message.Headers.Options;
			var clone = new MimeMessage (options);

			foreach (var header in message.Headers)
				clone.Headers.Add (header.Clone ());

			return clone;
		}