mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 17:56:00 +03:00
[GH-ISSUE #100] [Bug] Long unicode name in To: field; e-mail sent, but not shown in Sent folder #86
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#86
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 (Apr 19, 2022).
Original GitHub issue: https://github.com/d99kris/nmail/issues/100
Originally assigned to: @d99kris on GitHub.
I'm sending to
Κάποιοςμεμακρύόνομα Καιμακρύεπώνυμο <longname.longsurname@somemail.org>. The e-mail is sent, it's saved toSentfolder, but not shown in list of sent e-mails. An empty line appears in between other mails, which can be chosen; hitting return opens the e-mail. That happens only if the long name is in Unicode characters, Greek at least.I tried something like
Someonewithlongname Longsurname <s.long@somemail.org>and had no issues. The issue doesn't appear with small Unicode names, up to 5-6 characters; also I suspect it's the before space string (name space surname) that produces the problem. Just in case, I opened nmail on st terminal, urxvt and Linux console; same results. If I open the Sent folder from another MUA, the e-mail is shown on the list.Can't tell if my description is comprehensible, I'm attaching screenshots to clarify.
Red boxes in place of not shown sent messages:

Not shown message opened,

To:field is taking two lines. If the name is ASCII only,To:field occupies one line, even for long names.@d99kris commented on GitHub (Apr 30, 2022):
Thanks for the detailed bug report! I was able to reproduce the problem sending to
Κάποιοςμεμακρύόνομα Καιμακρύεπώνυμο <longname.longsurname@somemail.org>.The above commit should fix the issue. However, in order for it to work on already received emails one needs to delete old cached headers that might've been parsed wrongly using a previous nmail version. This can be done with:
rm -rf ~/.nmail/cache/headersNormally when fixing parsing errors in nmail the cache version number is bumped, invalidating existing caches. But similarly to #95 I think most users haven't encountered this issue, so manual clearing of headers cache is required this time.