mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-25 06:53:49 +00:00
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:
1 parent
f6a4348820
commit
c72a1948b3
27 files changed
+1052
-30
No files matched your search
@@ -41,4 +41,14 @@ public static class MailboxProviderTemplates
|
||||
// Every organization runs a server of its own, and IMAP ships switched off:
|
||||
new("Microsoft Exchange Server", string.Empty, IMAPS_PORT, MailboxTransportSecurity.SSL_ON_CONNECT, MailboxUsernameFormat.DOMAIN_ACCOUNT, MailboxProviderRequirements.ADMIN_ACTIVATION, "https://learn.microsoft.com/en-us/exchange/clients/pop3-and-imap4/configure-imap4", string.Empty),
|
||||
];
|
||||
|
||||
/// <summary>
|
||||
/// Finds the well-known provider whose server a host names, however the host was written.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Microsoft Exchange Server never matches: every organization runs a server of its own.
|
||||
/// </remarks>
|
||||
/// <param name="host">The host of a mailbox.</param>
|
||||
/// <returns>The provider, or null when the host belongs to none of them.</returns>
|
||||
public static MailboxProviderTemplate? FindByHost(string host) => ALL.FirstOrDefault(template => template.Host.Length > 0 && MailServerHosts.AreSame(template.Host, host));
|
||||
}
|
||||
Reference in new issue
Block a user