You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to insert a header on the top of the header list, the Content-* Body headers are moved to the top:
var sourceStream = new MemoryStream(Encoding.UTF8.GetBytes(@"From: Example Test <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=""simple boundary""
Test
"));
var mimeMessage = MimeMessage.Load(sourceStream);
mimeMessage.Headers.Insert(0, HeaderId.Received, "Test");
The resulting output is:
Content-Type: multipart/mixed;
boundary="simple boundary"
Received: Test
From: Example Test <[email protected]>
MIME-Version: 1.0
Test
Expected behavior
MimeKit should maintain header order and add the header to the top.
The text was updated successfully, but these errors were encountered:
When trying to insert a header on the top of the header list, the Content-* Body headers are moved to the top:
The resulting output is:
Expected behavior
MimeKit should maintain header order and add the header to the top.
The text was updated successfully, but these errors were encountered: