Fixes mail header encoding issues with MimeKit (#450)

For details see #441
This commit is contained in:
Xinyang Chen
2024-11-11 12:42:19 +02:00
committed by GitHub
parent 418eeb7317
commit a4a7ff46c5
2 changed files with 4 additions and 0 deletions

View File

@@ -151,6 +151,9 @@ namespace Wino.Server
if (isCreatedNew)
{
// Ensure proper encodings are available for MimeKit
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
// Spawn a thread which will be waiting for our event
var thread = new Thread(() =>
{