mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #95] [Bug] When year in Date: field is two digits (YY), the e-mail remains always on top, not sorted correctly #83
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#83
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 (Feb 15, 2022).
Original GitHub issue: https://github.com/d99kris/nmail/issues/95
Originally assigned to: @d99kris on GitHub.
I've recently received an e-mail with this date field:
Date: 13 Feb 22 00:04 ESTThis is shown in list of mails as 22-02-13 and sorted always on top, even before today's e-mails which show only time and not date.
Personally I think there shouldn't be YY dates on headers, so perhaps the proper thing to do is to mention the problem to the sender of such mails; I'm reporting it in case it's easy to be solved. It seems that forcing YYYY is neglected, forgetting '00 issues.
@d99kris commented on GitHub (Feb 15, 2022):
Hi @krackout - thanks for reporting the issue. I manually created an email message with that timestamp and I can reproduce the problem. I'll try see if this can be fixed in nmail.
@d99kris commented on GitHub (Feb 15, 2022):
I've implemented a fix for this issue in above commit.
However, in order for it to work 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 I feel receiving emails with this type of timestamp is not a common problem, thus the manual clearing of headers cache is required this time.