Bug 227942 - kmail - please add ability to display and sort by date received
Summary: kmail - please add ability to display and sort by date received
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 190088 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-21 15:53 UTC by Eric Sanford
Modified: 2016-11-08 15:44 UTC (History)
5 users (show)

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


Attachments
kmail - patch to add ability to display and sort by date received (26.14 KB, patch)
2010-02-21 16:14 UTC, Eric Sanford
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Sanford 2010-02-21 15:53:08 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    openSUSE RPMs

Kmail should have the ability to extract the date from the Received header field, display the date received and sort by date received.

A significant number of emails have incorrect or missing Date header fields. When sorting by Date in kmail, these drop to the bottom as Unknown or appear at the top if the Date header field contains a future date. 

The closest bug report I could find is 190088, which correctly points out that kmail no longer has the ability to sort email in reverse storage order.  In contrast, this is a request to add a new feature that is industry-standard for comparable email applications.
Comment 1 Eric Sanford 2010-02-21 16:14:17 UTC
Created attachment 40983 [details]
kmail - patch to add ability to display and sort by date received

Here is a basic patch to extract the date from the Received header field, add a Date Received column in kmail classic theme, and sort by Date Received in classic theme. It works for me in openSUSE 11.2 and Fedora 12.
Comment 2 Thomas McGuire 2010-02-28 23:37:57 UTC
*** Bug 190088 has been marked as a duplicate of this bug. ***
Comment 3 Thomas McGuire 2010-02-28 23:50:14 UTC
Hi "104624.2404@compuserve.com",

your patch looks fine, thanks!

Your patch is against KMail 1, which is in a total feature freeze. New features like in this patch can't be added to KMail 1.

All new features should only be added to KMail 2, which is being developed in trunk. Can you change your patch so that it is based on trunk? That would be good, since that's the only way your patch can make it into KDE.

There are some changes in KMail 2, for example KMMsgInfo and the binary index for it no longer exist, so the patch needs some adjustments.

Please use reviewboard.kde.org the next time, see a more detailed description on http://techbase.kde.org/Contribute/Send_Patches. Patches attached to bug reports tend to get lost :)

On a side note: Older KMail version implemented sorting by the order of arrival by simply using the serial number (which is the Akonadi Item Id now) as sort criteria. Also, older versions didn't have an additional column for sorting by order of arrival, instead you could sort by that just by clicking on the date header in the message list several times. I don't know which is the better way from a usability POV, your solution is also fine.
Comment 4 Myriam Schweingruber 2012-08-18 08:30:18 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 5 Christoph Bartoschek 2012-08-18 09:30:13 UTC
Was it not possible to move this bug to kmail2? The requested option is still missing.
Comment 6 Luigi Toscano 2012-08-19 00:05:18 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.
Comment 7 Christoph Bartoschek 2012-08-19 06:41:02 UTC
It is nearly impossible to verify that a feature is missing. I cannot find an option to sort by receiving date. Thus I think the request is still valid.
Comment 8 Eric Sanford 2012-08-20 10:37:19 UTC
(In reply to comment #6)
> Instead of creating a new feature request, please confirm here if the
> wishlist is still valid for kmail2.

This feature is on my wishlist for kmail2.
Comment 9 Ariel Garcia 2013-09-13 20:16:12 UTC
Feature still missing in Kmail2 / KDE 4.10.5
The "lost" sorting method was called Sort "by arrival", i really miss it :-)
Comment 10 Anders E. Andersen 2016-11-08 15:44:34 UTC
Me too++

Using sorting "None (Order of storage)" does not give the same result and you can't change the ordering with that setting either.

(I use the Danish translation, so not sure if "None (Order of storage)" is what it is called in english.)

Like Ariel Garcia mentioned in the closed duplicate issue, if email a was send before b, but b arrives sooner, I want a to be listed after b.

I like to look at my inbox as a task queue and I deal with it in order of arrival. If the list is sorted by date sent, new emails can pop into the list between stuff I have already dealt with and it becomes confusing to me why I haven't looked at a certain email before.