mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #105] [Bug] IMAP folder names in non-latin script garbled #92
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @krackout on GitHub (Aug 1, 2022).
Original GitHub issue: https://github.com/d99kris/nmail/issues/105
Originally assigned to: @d99kris on GitHub.
Since I'm very happy with
nmailI started using it for my business e-mail account also. The company I work for uses office365 with IMAP enabled thankfully. The locale is Greek, which is used for IMAP folder names also. Perhaps switching locale from office365 web interface settings (for display language) would change folder names also - not sure about it. But I'm posting here first, in case it's easily solvable.The issue is: The IMAP folder names in non-latin script are garbled, at least for Greek. I don't know if IMAP folder names are encoded in Unicode, or 8-bit ISO8859-7 / Win1253 and if it's vendor/imap server dependent.
For example,

Απεσταλμέναis shown as&A5EDwAO1A8MDxAOxA7sDvAOtA70DsQ-@d99kris commented on GitHub (Aug 1, 2022):
Hi @krackout - thanks for reporting! I can reproduce it here too, by creating IMAP folders with non-ASCII characters. Apparently it's a form of custom UTF-7 encoding, standardized for IMAP folder name use.
It's a bug in
nmailso I'll look into fixing it.@krackout commented on GitHub (Aug 1, 2022):
Great, thank you! A point to mention, on
main.conffile, will it be possible to have a directive like for example,sent=Απεσταλμένα? I'm wondering, because I editmain.conffile as UTF-8, whilst as per your discovery, IMAP folder names are custom UTF-7 encoding.@d99kris commented on GitHub (Aug 1, 2022):
It's a good thing you mentioned this, it should work - the conf files are all treated as UTF-8, but I'll make sure to test this as part of the fix.
@d99kris commented on GitHub (Aug 6, 2022):
This should be fixed with above commit. Please let me know if you're still encountering any issues.
@krackout commented on GitHub (Aug 7, 2022):
It's fixed. Working fine, proper list of IMAP folders in Greek and directives as
sent=Απεσταλμέναalso. Thank you!