Skip to content

Commit

Permalink
2.5.4: Fixed handling of case-sensitive boundary names and messages w…
Browse files Browse the repository at this point in the history
…ith "UID" in their subjects.
  • Loading branch information
bertjohnson committed May 20, 2017
1 parent 8195182 commit abbb80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpaqueMail/MailMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit abbb80e

Please sign in to comment.