[GH-ISSUE #98] [Bug] Unicode UTF-8 subject field breaks #85

Closed
opened 2026-03-03 01:19:41 +03:00 by kerem · 4 comments
Owner

Originally created by @krackout on GitHub (Mar 31, 2022).
Original GitHub issue: https://github.com/d99kris/nmail/issues/98

Originally assigned to: @d99kris on GitHub.

I'll try to explain the problem sufficiently by example. I'm sending an e-mail with a UTF-8 subject, greek characters:

Original subject as typed on nmail:
δοκιμή κειμένου ελληνικών

Displayed on receiver: an equal (=) character and a space added
δοκιμή κειμέν= ου ελληνικών
full header:
Subject: =?UTF-8?Q?=CE=B4=CE=BF=CE=BA=CE=B9=CE=BC=CE=AE =CE=BA=CE=B5=CE=B9=CE=BC=CE=AD=CE=BD= =CE=BF=CF=85 =CE=B5=CE=BB=CE=BB=CE=B7=CE=BD=CE=B9=CE=BA=CF=8E=CE=BD?=

Subject saved as, in nmail sent folder: characters are cut
δοκιμή κειμέν
full header:
Subject: =?UTF-8?Q?=CE=B4=CE=BF=CE=BA=CE=B9=CE=BC=CE=AE =CE=BA=CE=B5=CE=B9=CE=BC=CE=AD=CE=BD= =CE=BF=CF=85 =CE=B5=CE=BB=CE=BB=CE=B7=CE=BD=CE=B9=CE=BA=CF=8E=CE=BD?=

On the web interface of the mail provider, on the subject field, instead of the text,
δοκιμή κειμένου ελληνικών,
=?UTF-8?Q... and the rest of the full header subject field is shown.

Originally created by @krackout on GitHub (Mar 31, 2022). Original GitHub issue: https://github.com/d99kris/nmail/issues/98 Originally assigned to: @d99kris on GitHub. I'll try to explain the problem sufficiently by example. I'm sending an e-mail with a UTF-8 subject, greek characters: **Original subject as typed on nmail:** `δοκιμή κειμένου ελληνικών` **Displayed on receiver: an equal (=) character and a space added** `δοκιμή κειμέν= ου ελληνικών` **full header:** `Subject: =?UTF-8?Q?=CE=B4=CE=BF=CE=BA=CE=B9=CE=BC=CE=AE =CE=BA=CE=B5=CE=B9=CE=BC=CE=AD=CE=BD= =CE=BF=CF=85 =CE=B5=CE=BB=CE=BB=CE=B7=CE=BD=CE=B9=CE=BA=CF=8E=CE=BD?=` **Subject saved as, in nmail sent folder: characters are cut** `δοκιμή κειμέν` **full header:** `Subject: =?UTF-8?Q?=CE=B4=CE=BF=CE=BA=CE=B9=CE=BC=CE=AE =CE=BA=CE=B5=CE=B9=CE=BC=CE=AD=CE=BD= =CE=BF=CF=85 =CE=B5=CE=BB=CE=BB=CE=B7=CE=BD=CE=B9=CE=BA=CF=8E=CE=BD?=` On the web interface of the mail provider, on the subject field, instead of the text, `δοκιμή κειμένου ελληνικών`, `=?UTF-8?Q...` and the rest of the full header subject field is shown.
kerem closed this issue 2026-03-03 01:19:41 +03:00
Author
Owner

@d99kris commented on GitHub (Mar 31, 2022):

Thanks for providing a detailed bug report, will take a look.

<!-- gh-comment-id:1084509144 --> @d99kris commented on GitHub (Mar 31, 2022): Thanks for providing a detailed bug report, will take a look.
Author
Owner

@d99kris commented on GitHub (Apr 3, 2022):

I can reproduce this issue, will take a look and fix.

<!-- gh-comment-id:1086842278 --> @d99kris commented on GitHub (Apr 3, 2022): I can reproduce this issue, will take a look and fix.
Author
Owner

@d99kris commented on GitHub (Apr 3, 2022):

I've committed a fix for this now. Please let me know if you still observe any issues. Thanks!

<!-- gh-comment-id:1086879231 --> @d99kris commented on GitHub (Apr 3, 2022): I've committed a fix for this now. Please let me know if you still observe any issues. Thanks!
Author
Owner

@krackout commented on GitHub (Apr 3, 2022):

Works fine, thank you! I can now use nmail as my main MUA.

<!-- gh-comment-id:1086884692 --> @krackout commented on GitHub (Apr 3, 2022): Works fine, thank you! I can now use `nmail` as my main MUA.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nmail#85
No description provided.