Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
00a0f8b
Added German special characters to the agent instructions
Nov 23, 2026
adacbaf
Added the password encoding to mailboxes
Nov 23, 2026
aa307ca
Fixed signing in to mailboxes with German special characters in the p…
Nov 23, 2026
8d08c3a
Added the password encoding to the mail servers of organizations
Nov 23, 2026
ad5e6d0
Merge remote-tracking branch 'upstream/main' into pr/1224
SommerEngineering Nov 24, 2026
15548b8
Removed the automatic second sign-in of mailboxes in another encoding
SommerEngineering Nov 24, 2026
2b46a3c
Improved the password encoding of mailboxes to every ASCII-compatible…
SommerEngineering Nov 24, 2026
049407a
Applied the password encoding of the organization to every mailbox co…
SommerEngineering Nov 24, 2026
144c1b6
Added the choice of the password encoding to the mailbox dialog
SommerEngineering Nov 24, 2026
e511c49
Added tests for passwords beyond ASCII on their way through the secre…
SommerEngineering Nov 24, 2026
5642a7c
Improved the changelog entries of the password encoding
SommerEngineering Nov 24, 2026
665f2ee
Improved the agent instructions on text beyond ASCII
SommerEngineering Nov 24, 2026
c4e8368
Fixed a missing space in the sign-in check of mailboxes
SommerEngineering Nov 24, 2026
aa2dedd
Added the translations of the password encoding of mailboxes
SommerEngineering Nov 24, 2026
5a1809a
Removed the encoding hint for the mail servers of well-known providers
SommerEngineering Nov 24, 2026
b5869ea
Improved the password encoding of mailboxes with a type of its own
SommerEngineering Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ again yourself when `metadata.txt` changes during the session, e.g., after a mer
- **No automated formatting for Rust or .NET files** - Never run automated formatters on Rust files (`.rs`) or .NET files (`.cs`, `.razor`, `.csproj`, etc.). Only make the minimal manual formatting changes required for the specific edit.
- **Spaces in paths** - Always quote paths with spaces in bash commands
- **Compatibility shims** - Temporary fallback or read-repair code must be documented in `documentation/compatibility-shims/` with an introduced date, remove-after date, code references, and removal checklist. Add a short code comment near the shim that references the document and remove-after date. Check this folder before adding similar fallback logic, and do not extend expired shims without explicit maintainer direction. Do not use this process for permanent settings schema migrations; those belong in `app/MindWork AI Studio/Settings/SettingsMigrations.cs`.
- **Text beyond ASCII** - Users of AI Studio write in many languages and scripts, so never assume that a text is ASCII, nor that it fits one particular code page. Wherever text leaves or enters the app as bytes, e.g., passwords and usernames, file and folder names, mail folders and headers, URLs, CSV, command lines, and network protocols, check which encoding the other side expects. In UTF-8, a character beyond ASCII takes two to four bytes; a code page such as Windows-1252, Windows-1254, or Shift-JIS takes other bytes and lacks most characters of other scripts, e.g., Windows-1252 has no `ş` and no `ẞ`. Use the `Encoding` of .NET with an exception fallback, never one which silently replaces a missing character with `?`. Check the Unicode normalization as well: the same `ä` arrives as one code point (NFC) or as `a` with a combining diaeresis (NFD), e.g., in file names from macOS. Include characters of several scripts in the tests of such code, e.g., `ä ß € é ø ş ł ж 日本 한`, and a decomposed `ä`.

## Wiki

Expand Down
24 changes: 24 additions & 0 deletions app/MindWork AI Studio/Assistants/I18N/allTexts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13801,6 +13801,12 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T1836253938"] = "Se
-- Update
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T1847791252"] = "Update"

-- Your username or password contains characters beyond ASCII, such as umlauts or accents. Depending on its configuration, a mail server may expect them in another encoding than {0}, which this test used. Ask your IT department which encoding the server expects, and choose it in the server details. Every test is one attempt to sign in, and too many failed attempts may lock your account.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T1885860334"] = "Your username or password contains characters beyond ASCII, such as umlauts or accents. Depending on its configuration, a mail server may expect them in another encoding than {0}, which this test used. Ask your IT department which encoding the server expects, and choose it in the server details. Every test is one attempt to sign in, and too many failed attempts may lock your account."

-- Your username or password contains characters beyond ASCII, such as umlauts or accents. Depending on its configuration, a mail server may expect them in another encoding than {0}, which this test used. Ask your IT department which encoding the server expects, and choose it in the server details. Every test is one attempt to sign in, and too many failed attempts may lock your account.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T1885860334::INFORMAL"] = "Your username or password contains characters beyond ASCII, such as umlauts or accents. Depending on its configuration, a mail server may expect them in another encoding than {0}, which this test used. Ask your IT department which encoding the server expects, and choose it in the server details. Every test is one attempt to sign in, and too many failed attempts may lock your account."

-- Sign-in
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T1936191160"] = "Sign-in"

Expand Down Expand Up @@ -13960,15 +13966,27 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T3362621909"] = "Sh
-- Hide Server Details
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T3516057682"] = "Hide Server Details"

-- Encoding of username and password
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T3611739483"] = "Encoding of username and password"

-- Port
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T3804576966"] = "Port"

-- Test again with {0}
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T4041320769"] = "Test again with {0}"

-- Not tested yet.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T417002657"] = "Not tested yet."

-- Yes, also index the sent mails and the drafts
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T4209023132"] = "Yes, also index the sent mails and the drafts"

-- Your organization sets the encoding for this mail server.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T4269875433"] = "Your organization sets the encoding for this mail server."

-- Your organization sets the encoding for this mail server.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T4269875433::INFORMAL"] = "Your organization sets the encoding for this mail server."

-- Username
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::DATASOURCEMAILBOXDIALOG::T470340825"] = "Username"

Expand Down Expand Up @@ -21397,6 +21415,12 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::FILENAMEPATTERNS::T495100949"] = "Please use o
-- Please use only single asterisks as wildcards, e.g., *.txt or report-*.md.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::FILENAMEPATTERNS::T495100949::INFORMAL"] = "Please use only single asterisks as wildcards, e.g., *.txt or report-*.md."

-- The chosen encoding cannot carry your username or your password to this server: it lacks one of their characters, or the server accepts no other encoding than UTF-8. AI Studio did not try to sign in, so that your account is not locked. Choose another encoding in the server details of the mailbox, or ask your IT department which one the server expects.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::MAIL::MAILBOXCONNECTIONFAILUREEXTENSIONS::T1203063005"] = "The chosen encoding cannot carry your username or your password to this server: it lacks one of their characters, or the server accepts no other encoding than UTF-8. AI Studio did not try to sign in, so that your account is not locked. Choose another encoding in the server details of the mailbox, or ask your IT department which one the server expects."

-- The chosen encoding cannot carry your username or your password to this server: it lacks one of their characters, or the server accepts no other encoding than UTF-8. AI Studio did not try to sign in, so that your account is not locked. Choose another encoding in the server details of the mailbox, or ask your IT department which one the server expects.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::MAIL::MAILBOXCONNECTIONFAILUREEXTENSIONS::T1203063005::INFORMAL"] = "The chosen encoding cannot carry your username or your password to this server: it lacks one of their characters, or the server accepts no other encoding than UTF-8. AI Studio did not try to sign in, so that your account is not locked. Choose another encoding in the server details of the mailbox, or ask your IT department which one the server expects."

-- The server could not be reached. Please check the host and the port, and whether you need a VPN connection.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::MAIL::MAILBOXCONNECTIONFAILUREEXTENSIONS::T1314233926"] = "The server could not be reached. Please check the host and the port, and whether you need a VPN connection."

Expand Down
24 changes: 24 additions & 0 deletions app/MindWork AI Studio/Dialogs/DataSourceMailboxDialog.razor
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,16 @@
</MudSelectItem>
}
</MudSelect>

@* Not part of the source: the encoding only decides how the password travels, so it stays open once the mails are prepared. *@
<MudSelect T="MailboxPasswordEncoding" Value="@this.PasswordEncoding" ValueChanged="@this.SelectPasswordEncoding" Label="@T("Encoding of username and password")" Class="mt-3" ReadOnly="@this.IsPasswordEncodingSetByOrganization" HelperText="@this.PasswordEncodingHelperText" OpenIcon="@AppIcons.EXPAND_MORE" AdornmentColor="Color.Info" Adornment="Adornment.Start" AdornmentIcon="@AppIcons.PASSWORD_ENCODING">
@foreach (var passwordEncoding in MailboxPasswordEncoding.ALL)
{
<MudSelectItem T="MailboxPasswordEncoding" Value="@passwordEncoding">
@passwordEncoding.Name
</MudSelectItem>
}
</MudSelect>
</div>
</MudCollapse>

Expand Down Expand Up @@ -258,6 +268,20 @@
@this.TestResultText
</MudText>
</MudStack>
@if (this.ShowsPasswordEncodingHint)
{
<MudAlert Severity="Severity.Info" Variant="Variant.Outlined" Dense="@true" Class="mt-3">
<MudJustifiedText Typo="Typo.body2">
@string.Format(TA("Your username or password contains characters beyond ASCII, such as umlauts or accents. Depending on its configuration, a mail server may expect them in another encoding than {0}, which this test used. Ask your IT department which encoding the server expects, and choose it in the server details. Every test is one attempt to sign in, and too many failed attempts may lock your account."), this.PasswordEncoding.Name)
</MudJustifiedText>
@if (this.SuggestedPasswordEncoding is { } suggestedPasswordEncoding)
{
<MudButton Variant="Variant.Outlined" Color="Color.Primary" StartIcon="@AppIcons.PASSWORD_ENCODING" Class="mt-2" Disabled="@(!this.CanTestConnection)" OnClick="@this.TestWithSuggestedPasswordEncoding">
@string.Format(T("Test again with {0}"), suggestedPasswordEncoding.Name)
</MudButton>
}
</MudAlert>
}
</div>

<MudText Typo="Typo.h6" Class="mb-1">
Expand Down
Loading
Loading