Bug 333200 - Date of email not displayed
Summary: Date of email not displayed
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.12.97
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-08 12:04 UTC by Johannes Hirte
Modified: 2017-01-07 22:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2014-04-08 12:04:07 UTC
I have an email where the date is not displayed, neither in the message list nor in the header of the mail. At moment kmail is configured as View->Headers->All headers and Date: and Message-ID: are empty there.  When displaying the source of the mail, I get:

Message-ID: 66305280236646.00422.8@mrclay.org>
and 
Date: Mon, 07 Apr 2014 16:18:25 -0-100

Reproducible: Always
Comment 1 Jan Kundrát 2014-04-08 18:49:30 UTC
The time zone appears to be invalid, so it makes certain amount of sense to not show any date in there.
Comment 2 Ivan S. J. 2014-05-08 09:41:40 UTC
With kmail2 4.11.5 I have:

Date not shown in message list. Date not shown in message:
Date: Sat, 25 Jun 2005 01:45:33 +-100
Date: Tue, 04 Nov 2008 17:51:09 <control character>0100
Date: Mon, 3 Nov 1997 15:14:20 +100

Date shown as "Unknown" in message list. Date is shown in message:
Date: Thu, 24 Apr 2014 12:42:39 +0000	(shown as 2014-04-24 14:42:39)
Date: Thu, 24 Apr 2014 17:24:05 +0800	(shown as 2014-04-24 11:24:05)
Date: Tue, 06 May 2014 10:02:00 +0000	(shown as 2014-05-06 12:02:00)
Date: Thu, 24 Apr 2014 15:30:32 +0200 (CEST) (shown as 2014-04-24 15:30:32)

The first three are undeniably invalid, but it appears to be not completely uncommon that the timezone is invalid. It would be neat if kmail2 tried to re-parse the date header ignoring the timezone part.

The next three I have no explanation for. They look correct to me.
The last one is technically invalid due to the "(CEST)" suffix.
Comment 3 diego 2014-07-23 13:37:37 UTC
I'm experiencing this bug as well.
If DATE tag is missing or if it contains a different date format, KMail displays Unknown.
The date contained in the RECEIVED tag is always ignored
Comment 4 Denis Kurz 2016-09-24 17:58:01 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 5 Ivan S. J. 2016-09-24 19:42:47 UTC
Tested with kmail2 14.14.10

Date in email: Date: Sat, 25 Jun 2005 01:45:33 +-100
Message list: Unknown
Message: Unknown

Date in email: Date: Tue, 06 May 2014 10:02:00 +0000
Message list: 2014-05-06 12:02
Message: 2014-05-06 12:02

Date in email: Date: Date: Thu, 24 Apr 2014 15:30:32 +0200 (CEST)
Message list: Unknown
Message: Unknown

So the first (+-100) is still Unknown. The second (+0000) is now shown with correct timestamp. And the third (+0200 (CEST)) is now shown as unknown in both message list and message.
Comment 6 Denis Kurz 2017-01-07 22:22:16 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.