Bug 425216

Summary: Mails with invalid Date field get set to Unix timestamp 0
Product: [Applications] kmail2 Reporter: Alyx <alyxdg>
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: kde-mail
Priority: NOR    
Version: 5.16.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: showing the e-mails with 'unkown' date being plced in the january 1970 tab

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.