Skip to content

Commit

Permalink
Just followed the MimeEntity code approach to avoid non formatted con… (
Browse files Browse the repository at this point in the history
#471)

* Duplicate the MimeEntity logic for parsing the Content-Id when extracting the Content-Id from TNEF data.
  • Loading branch information
humayun-ahmed authored and jstedfast committed Mar 15, 2019
1 parent 2be462f commit 578c631
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MimeKit/Tnef/TnefPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ static void ExtractAttachments (TnefReader reader, BodyBuilder builder)
attachment.ContentBase = prop.ReadValueAsUri ();
break;
case TnefPropertyId.AttachContentId:
attachment.ContentId = prop.ReadValueAsString ();
if (MailboxAddress.TryParse (prop.ReadValueAsString (), out MailboxAddress mailbox))
attachment.ContentId = mailbox.Address;
break;
case TnefPropertyId.AttachDisposition:
text = prop.ReadValueAsString ();
Expand Down

0 comments on commit 578c631

Please sign in to comment.