Skip to content

Commit

Permalink
Always use a lowercase domain name in the Message-Id to work around b…
Browse files Browse the repository at this point in the history
…ugs in eM Client

Fixes issue #734
  • Loading branch information
jstedfast committed Dec 16, 2021
1 parent 5dbe2b4 commit f629a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MimeKit/Utils/MimeUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static string GenerateMessageId ()
try {
var properties = IPGlobalProperties.GetIPGlobalProperties ();

DefaultHostName = properties.HostName;
DefaultHostName = properties.HostName.ToLowerInvariant ();
} catch {
DefaultHostName = "localhost.localdomain";
}
Expand Down

0 comments on commit f629a4c

Please sign in to comment.