Permalink
Browse files

2.5.4: Fixed handling of case-sensitive boundary names and messages w…

…ith "UID" in their subjects.
  • Loading branch information...
bertjohnson committed May 20, 2017
1 parent 8195182 commit abbb80e5d4617b293c288d5e519aa80fd13b6c7c
Showing with 2 additions and 2 deletions.
  1. +2 −2 OpaqueMail/MailMessage.cs
@@ -1090,7 +1090,7 @@ public void SmimePrepare(SmtpClient smtpClient)
Encoder bodyEncoder = bodyEncoding.GetEncoder();
// Encode and return the raw bytes.
char[] chars = (rawBody).ToCharArray();
char[] chars = rawBody.ToCharArray();
byte[] MIMEBodyBytes = new byte[bodyEncoder.GetByteCount(chars, 0, chars.Length, false)];
bodyEncoder.GetBytes(chars, 0, chars.Length, MIMEBodyBytes, 0, true);
@@ -1281,7 +1281,7 @@ private void ProcessMimeParts()
}
else
{
// If and this MIME part is text/html, replace the default body with the current MIME part.
// If this MIME part is text/html, replace the default body with the current MIME part.
if (!ContentType.ToUpper().StartsWith("TEXT/HTML") && contentTypeToUpper.StartsWith("TEXT/HTML"))
{
// Add the previous default body as an alternate view.

0 comments on commit abbb80e

Please sign in to comment.