Skip to content

Fix Umlaute in mail provider login - #1224

Open
peerschuett wants to merge 4 commits into
MindWorkAI:mainfrom
peerschuett:fix-mail-provider-login
Open

peerschuett wants to merge 4 commits into
MindWorkAI:mainfrom
peerschuett:fix-mail-provider-login

Conversation

@peerschuett

@peerschuett peerschuett commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Some German users were not able to login to their exchange server, because their password contained a special character (in this case a german Umlaut), and AI Studio just responded that their password was incorrect. The reason for this is that the password was saved as UTF-8 and the server required Latin.

What I changed:

  • We can now set the encoding per mail provider.
  • If the default encoding (UTF-8) fails during authentication, AI Studio tries to authenticate with the Latin encoding as well.
  • Added a note to the AGENTS.md so that the LLM Agents remember to incorporate Umlaute into their considerations in the future.

Related proposal or issue

Bug Report

How did you test it?

  • Built it locally
  • Ran a code review with Claude Code

Wiki

We need to note that the authentication tries two times, instead of once, in case of a wrong password.

Required statements

  • Review: I have reviewed every change in this pull request and can explain it when asked.
  • License: I license my contribution in this pull request, including all commits I add to it later, under the MIT License, and I agree that it is distributed as part of MindWork AI Studio under the project license or under the MIT License.
  • Right to contribute: The contribution is my own work, or I have permission to submit it, including the consent of my employer or client where needed. To the best of my knowledge, it does not infringe the rights of others, and AI-generated parts do not reproduce third-party code under incompatible terms.
  • Changes by maintainers: I understand that the maintainers will change this pull request to fit the product, and that they may close it.

Credits (optional)

  • Credit me with my GitHub username only.
  • Do not credit me.

Peer Hogeterp added 4 commits November 23, 2026 14:22
Many users of AI Studio write German, and a mailbox password with an
umlaut failed to sign in at Exchange because the encoding was never
considered. Agents now keep the German special characters in mind
wherever text leaves or enters the app as bytes: the encoding the other
side expects, the Unicode normalization, and tests with such characters.
A mailbox now stores how its username and password are encoded when
signing in: UTF-8, as before, or Windows-1252, which Microsoft Exchange
expects. Mailboxes stored earlier load with UTF-8, and an encoding this
version does not know keeps the mailbox from signing in at all.

Windows-1252 goes through the SASL mechanism PLAIN only: MailKit sends
the LOGIN command in UTF-8, whatever encoding it is handed. A username
or password the encoding lacks a character of is never sent in it, and
Windows-1252 composes a decomposed umlaut first.

Nothing changes yet for existing mailboxes; the connection test which
finds the encoding follows in the next commit.
…assword

Microsoft Exchange expects the username and the password in
Windows-1252, while AI Studio always sent UTF-8. A password with an
umlaut, ß, §, or € was therefore refused.

The connection test, which the user starts, may now try the other
encoding once more when the server refused the first one, but only when
the username or the password holds a character beyond ASCII. The
encoding the server accepted is stored with the mailbox. A refused
sign-in on record is cleared once the mailbox is saved with the new
encoding. The synchronization, a manual retry, and creating a folder
still sign in exactly once, with the stored encoding.
@peerschuett
peerschuett requested review from a team as code owners November 23, 2026 17:30
@peerschuett peerschuett self-assigned this Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant