private static string DecodeString(string str) { // decode QuotedPrintable text using .NET internal decoder Attachment attachment = Attachment.CreateAttachmentFromString("", str); return attachment.Name; }