From a4a7ff46c50d85057a490a4aec0ca1e1c956de8e Mon Sep 17 00:00:00 2001 From: Xinyang Chen Date: Mon, 11 Nov 2024 12:42:19 +0200 Subject: [PATCH] Fixes mail header encoding issues with MimeKit (#450) For details see #441 --- Wino.Server/App.xaml.cs | 3 +++ Wino.Server/Wino.Server.csproj | 1 + 2 files changed, 4 insertions(+) diff --git a/Wino.Server/App.xaml.cs b/Wino.Server/App.xaml.cs index 61f3a77f..da967320 100644 --- a/Wino.Server/App.xaml.cs +++ b/Wino.Server/App.xaml.cs @@ -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(() => { diff --git a/Wino.Server/Wino.Server.csproj b/Wino.Server/Wino.Server.csproj index 424b0153..7f9edb8b 100644 --- a/Wino.Server/Wino.Server.csproj +++ b/Wino.Server/Wino.Server.csproj @@ -33,6 +33,7 @@ +