Bug 190088

Summary: kmail lost the ability to sort by date of arrival
Product: [Applications] kmail Reporter: Christoph Bartoschek <bartoschek>
Component: new message listAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aog2000a, christophe, sven.burmeister
Priority: NOR    
Version: 1.11.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:
Attachments: Inbox sorted by date.
Inbox unsorted

Description Christoph Bartoschek 2009-04-19 17:55:45 UTC
Version:            (using KDE 4.2.2)
Installed from:    SuSE RPMs

kmail from KDE 3.5 had the ability to sort by the date of arrival of a mail. 

In KDE 4.x this is lost or not as easy visible as in KDE 3.5. 

Readd this option again or make it accessible as it was in kmail from KDE 3.5.
Comment 1 Jaime Torres 2009-04-20 09:50:15 UTC
The option is there, and more advanced.

Please press the buttons at the right of the quick search over the mail list.
Comment 2 Christoph Bartoschek 2009-04-21 00:11:30 UTC
I do not see how to achieve the desired effect with the buttons. Only the third from the right is relevant to sorting. But the available options are only (translated from german by me):

- unsorted
- date/time
- date/time of newest mail in a group
- sender
- recipient
- sender/recipient (intelligent)
- subject
- size
- status

I do not see how to get "date of arrival"
Comment 3 S. Burmeister 2009-05-09 14:27:09 UTC
The first one, i.e. unsorted.
Comment 4 Christoph Bartoschek 2009-05-09 16:28:05 UTC
Created attachment 33491 [details]
Inbox sorted by date.

This is how kmail sorts my mails by using the third option.
Comment 5 Christoph Bartoschek 2009-05-09 16:33:01 UTC
Created attachment 33492 [details]
Inbox unsorted

This is my inbox from today in the unsorted view.

Compare this to the screenshots showing the sort by date and you see that some mails that arrived today are missing. I have scrolled to the end in both views. Therefore this is not the correct setting.

You can also see the problem of the sorted by date view by looking at the date of the "Institutsnachwuchs" mail. The author had problems with his clock configuration. The mail arrived in 2006.
Comment 6 Ariel Garcia 2009-05-13 15:16:32 UTC
I can confirm the same issue in the Debian packages, kmail 4.2.2 (Debian version 4:4.2.2-1).

The "sort by arrival date" option is really important if you don't want to miss new mail in a big folder! otherwise, newly incoming emails whose time/date is not correct land way down in your folder and they mix up with other unread emails.
Comment 7 Christophe Marin 2009-05-23 18:28:59 UTC
(In reply to comment #5)
> Created an attachment (id=33492) [details]
> Inbox unsorted
> 
> This is my inbox from today in the unsorted view.
> 
> Compare this to the screenshots showing the sort by date and you see that some
> mails that arrived today are missing. I have scrolled to the end in both views.


If you use the "classic" theme and "unsorted", click on the 'date' header to sort the mails by date. (looking at your screenshot, it seems you didn't)
Comment 8 Christoph Bartoschek 2009-05-23 20:25:22 UTC
Clicking on Date does not work. It switches the sorting to sort by date as indicated by the other screenshot. The result is not sorted by arrival!
Comment 9 Ariel Garcia 2009-05-24 13:33:22 UTC
Let's make it clear with an example ;-)

Say somebody sends me an email, let's call it "A", on
   January 1st, 10:00
but that email stays stucked in some intermediate email server and gets delivered to my inbox 8hs later, so at 18:00.

Somebody else sends me email "B" on
   January 1st, 14:00
and this one gets delivered immediately.

Sorting Date would list them as "A B"
whereas sorting by "Arrival Date" would list them "B A"


* Another variation of this problem:
all like above, except that the one sending me the email "A" has the clock incorrectly set in his computer (say, 1st of Feb instead of 1st Jan ;-)
and the email gets sent with the "Date:" field set in the future.
Then sorting by Date would give "B A", sorting by Arrival gives "A B"


Anyways, Sort Order "None (storage order)" could be just what we miss here (not sure though, can some devel confirm this?)
But it doesn't allow to _reverse_ the ordering (most recently arrived on top of th list).
Comment 10 Ariel Garcia 2009-05-24 13:39:09 UTC
Correcting myself already ;-)

> * Another variation of this problem:
> all like above, except that the one sending me the email "A" has the clock
> incorrectly set in his computer (say, 1st of Feb instead of 1st Jan ;-)
> and the email gets sent with the "Date:" field set in the future.

but this time the email gets delivered immediately ;-)

> Anyways, Sort Order "None (storage order)" could be just what we miss here 
> (not sure though, can some devel confirm this?)

i now see the Comment #5 from Christoph where he showed that this is NOT the case... so q'n answered already
Comment 11 Thomas McGuire 2010-02-28 23:37:57 UTC

*** This bug has been marked as a duplicate of bug 227942 ***