Bug 425216 - Mails with invalid Date field get set to Unix timestamp 0
Summary: Mails with invalid Date field get set to Unix timestamp 0
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: 5.16.0
Platform: Manjaro Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-11 10:37 UTC by Alyx
Modified: 2022-04-11 01:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
showing the e-mails with 'unkown' date being plced in the january 1970 tab (91.43 KB, image/png)
2020-08-11 10:37 UTC, Alyx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alyx 2020-08-11 10:37:34 UTC
Created attachment 130780 [details]
showing the e-mails with 'unkown' date being plced in the january 1970 tab

SUMMARY
When I receive e-mail from incorrectly configured mail servers that do not include the 'Date' filed in the mail header, the email shows up as being received on January 1970, instead of on the date the e-mail was received. While it does show up in unread emails it's very clumsy to need to scroll down all the way to 1970 in my e-mails when I receive mails form these addresses (and no, they're not spam but important e-mails).


STEPS TO REPRODUCE
1. Receive a mail without the Date header-field filled in.

OBSERVED RESULT
These e-mails show up in the tab January 1970.

EXPECTED RESULT
These e-mails show up in the tab/date they were received.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Comment 1 Matt Gibbs 2022-04-11 01:38:03 UTC
I'
Comment 2 Matt Gibbs 2022-04-11 01:41:19 UTC
(apologies for the accidental comment)

I'm experiencing the same issue on 5.19.3 on OpenSUSE Leap 15.3.  When the "Date" header is missing, the date displayed is January 1, 1970.  Please consider using the most recent "received by" date as an alternative.