Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] IMAP folder names in non-latin script garbled #105

Closed
krackout opened this issue Aug 1, 2022 · 5 comments
Closed

[Bug] IMAP folder names in non-latin script garbled #105

krackout opened this issue Aug 1, 2022 · 5 comments
Assignees

Comments

@krackout
Copy link

krackout commented Aug 1, 2022

Since I'm very happy with nmail I 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-
nmail

@d99kris
Copy link
Owner

d99kris commented 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 nmail so I'll look into fixing it.

@d99kris d99kris self-assigned this Aug 1, 2022
@d99kris d99kris changed the title IMAP folder names in non-latin script garbled [Bug] IMAP folder names in non-latin script garbled Aug 1, 2022
@krackout
Copy link
Author

krackout commented Aug 1, 2022

Great, thank you! A point to mention, on main.conf file, will it be possible to have a directive like for example, sent=Απεσταλμένα ? I'm wondering, because I edit main.conf file as UTF-8, whilst as per your discovery, IMAP folder names are custom UTF-7 encoding.

@d99kris
Copy link
Owner

d99kris commented 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 d99kris closed this as completed in b918e4d Aug 6, 2022
@d99kris
Copy link
Owner

d99kris commented Aug 6, 2022

This should be fixed with above commit. Please let me know if you're still encountering any issues.

@krackout
Copy link
Author

krackout commented Aug 7, 2022

It's fixed. Working fine, proper list of IMAP folders in Greek and directives as sent=Απεσταλμένα also. Thank you!

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

No branches or pull requests

2 participants