Fixed signing in to mailboxes with characters beyond ASCII in the username or password (#1224)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
Peer HogeterpandThorsten Sommer authored and GitHub committed 2026-11-24 15:53:19 +01:00
1 parent f6a4348820
commit c72a1948b3
27 files changed
+1052 -30

No files matched your search

@@ -46,6 +46,17 @@ public sealed class MailboxProviderTemplatesTests
}
}
[TestCase("imap.gmail.com", "Gmail")]
[TestCase(" IMAP.Mailbox.ORG. ", "mailbox.org")]
[TestCase("posteo.de", "Posteo")]
public void AHostFindsItsProvider(string host, string expectedName) => Assert.That(MailboxProviderTemplates.FindByHost(host)?.Name, Is.EqualTo(expectedName));
[TestCase("")]
[TestCase("exchange.intra.example.org")]
[TestCase("imap.gmail.com.example.org")]
[TestCase("not a host")]
public void AnotherHostFindsNoProvider(string host) => Assert.That(MailboxProviderTemplates.FindByHost(host), Is.Null);
[Test]
public void EveryRequirementHasItsOwnDescription()
{