Webmail Login Javascript Prevents Login with Account Containing Unicode Characters
(This issue was imported from Gitea) byb on July 2, 2021: Hi,
This might be related to this unicode support issue: https://issues.purelymail.com/Scott/Purelymail/issues/41.
Even so, currently Purelymail's admin panel Users section (https://purelymail.com/manage/users) allows the creation of accounts with unicode. I made an account using Chinese characters, lets say '你好吗@mydomain.com'.
When I try to log in from the Webmail Login (https://purelymail.com/user/login), I get this error (javascript check?):
A part followed by '@' should not contain the symbol '你'.
I have not tried logging in with a different client... so I don't know if mail is making its way to this email box. I don't know which route you'd like to take trying to fix this bug: fix the javascript check or disallow the creation of email accounts with unicode characters in them.
Comment by Scott on July 2, 2021: Interestingly, that error appears to be from the browser- it won't allow unicode characters in an "email" input field.
I think the stopgap I'll make until there's proper unicode mail support is:
- Allow Unicode users to be created, but show a warning about current lack of mail support
- Change the email login fields to accept Unicode
This also affects emails with an apostrophe In the username portion, like '@example.com.
Purelymail will send and receive email at that address, but an error occurs when logging into the webmail.
Notably, I have "Symbolic Subaddressing" disabled for that email domain.
An interesting log appears in the Javascript console when I reproduce the error.
DevTools failed to load source map: Could not parse content for https://purelymail.com/sm/16e9409ca5101a5d2d7ec624f4c76d8de7d2d079a73765055c7dbd83d1b764bd.map: Unexpected token '<', "<html><hea"... is not valid JSON
Same problem here with German special characters:
ä Ä ö Ö ü Ü ẞ ß