Bug 319843 - unknown date despite information in "received" field
Summary: unknown date despite information in "received" field
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdecore (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-14 20:17 UTC by Thomas Monjalon
Modified: 2018-11-12 03:03 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
correctly shown email (7.43 KB, application/octet-stream)
2013-06-11 20:07 UTC, Todor Takov
Details
email shown with date "Unknown" (7.55 KB, application/octet-stream)
2013-06-11 20:11 UTC, Todor Takov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Monjalon 2013-05-14 20:17:05 UTC
When there is no "date" field, it is displayed as unknown. It happens every days with spams.
But a fallback date could be found in the "received" field.

Related detail: the mails without date appears at the bottom of the list and it is boring to view/remove them. A light fix could be to display them before the most recent ones.

Reproducible: Always
Comment 1 Todor Takov 2013-06-11 20:07:20 UTC
Created attachment 80457 [details]
correctly shown email
Comment 2 Todor Takov 2013-06-11 20:10:42 UTC
There's something similar though not exactly the same here.
I am receiving emails from the servers of National Internal Revenue Service of Bulgaria,
which have the date field, and the  "received" field but the date is still displayed as unknown. 

In some of the emails the date field is like this:
Date: Tue, 9 Apr 2013 14:16:45 +0300
and the date of the email in Kmail is displayed properly,

But in other emails the date field is like:
Date: Fri, 12 Apr 2013 16:48:45 +03:00
and the date of the email in Kmail is displayed as "Unknown".
Comment 3 Todor Takov 2013-06-11 20:11:47 UTC
Created attachment 80458 [details]
email shown with date "Unknown"
Comment 4 Laurent Montel 2013-06-27 14:30:19 UTC
it's a kdelibs bug
Date: Fri, 12 Apr 2013 16:48:45 +03:00

it doesn't work because it wants :
Date: Fri, 12 Apr 2013 16:48:45 +0300

=> without ":"
Comment 5 Todor Takov 2013-06-27 17:54:41 UTC
Yes, I guess this is the reason. 
My system is Slackware14.0 and KDE 4.10.4.
Thunderbird & Seamonkey Mail parse this date anyway and don't show "Unknown date" notice.
I would like Kmail to be able to parse this as well.
I am aware that this is perhaps not standard compliant, but since such a situation (syntax) can happen in the wild (in my case this is the mail server of the tax administration) then there must be a way to parse this string in such a way as to extract the correct date of the message .
Even more so , because Kmail has been and still is my main email client.
Regards,
Todor
Comment 6 Todor Takov 2013-06-27 18:15:34 UTC
Another clue as to why it happens!

There's a text in the problematic email that reads:

X-Library: Oracle utl_smtp

I hope this helps. Apparently this office uses an Oracle application to send email.
Comment 7 Andrew Crouthamel 2018-11-10 03:12:48 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Todor Takov 2018-11-11 19:55:54 UTC
(In reply to Andrew Crouthamel from comment #7)
> Dear Bug Submitter,
> 
> This bug has been stagnant for a long time. Could you help us out and
> re-test if the bug is valid in the latest version? I am setting the status
> to NEEDSINFO pending your response, please change the Status back to
> REPORTED when you respond.
> 
> Thank you for helping us make KDE software even better for everyone!

I can confirm that this bug has been removed in Kmail-Version 5.9.2
My system is Slackware-current as of 11.11.2018 and 
KDE 5_18.10 for Slackware, 
consisting of 
KDE Frameworks 5.51.0,
Plasma 5.14.1 
Applications 18.08.2
All this on top of Qt 5.11.2
Comment 9 Todor Takov 2018-11-11 20:11:19 UTC
Forgot to mark it REPORTED!
Sorry!
Comment 10 Andrew Crouthamel 2018-11-12 03:03:36 UTC
Thanks for the update!