You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Adding non ASCII characters to the Name fails parsing currently.
The current code uses the wrong charset lookup, that is easily fixed (see fix/muttaliasparsing), but configuring it with the icu charsets from Purebred.Plugin.ICU.icuCharsets has no bearing on the parsed addresses with non-ASCII characters.
To Reproduce
Steps to reproduce the behavior:
Configure an alias file. E.g. I've put mine under ${HOME}/.config/purebred/alias
Add contents (see below)
Configure the config file to parse and use the aliases
Compose a new mail
For the To: use the configured nick and press <TAB>
Ah dang.. I know what's going on. Above example in a repl:
λ: let b = Single $ Mailbox (Just "Füh Bäh") (AddrSpec "f" (DomainDotAtom $ pure "example.test"))
λ: b
Single (Mailbox (Just "F\252h B\228h") (AddrSpec "f" (DomainDotAtom ("example.test" :| []))))
Which means if I currently want to use non-ascii characters in the alias file I obviously need to represent it that way or write another address parser.
Describe the bug
Adding non ASCII characters to the Name fails parsing currently.
The current code uses the wrong charset lookup, that is easily fixed (see
fix/muttaliasparsing
), but configuring it with the icu charsets fromPurebred.Plugin.ICU.icuCharsets
has no bearing on the parsed addresses with non-ASCII characters.To Reproduce
Steps to reproduce the behavior:
${HOME}/.config/purebred/alias
To:
use the configured nick and press<TAB>
Example alias:
Example purebred config:
Expected behavior
The email is populated with the configured name in the alias file
Additional context
I checked by trying out the parser in a repl, but no luck:
There must be something fundamental I'm missing here, since we're already parsing addresses successfully in the application without any problems.
What am I missing?
The text was updated successfully, but these errors were encountered: