Opened 5 years ago
Closed 4 years ago
#1485144 closed Bugs (fixed)
Sort by date out of order
| Reported by: | PeterK2003 | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.3-stable |
| Component: | PHP backend | Version: | 0.3-stable |
| Severity: | normal | Keywords: | |
| Cc: | haba713@… |
Description
When sorting by dates the messages are not ordered properly.
Attachments (2)
Change History (29)
comment:1 Changed 5 years ago by PeterK2003
comment:2 Changed 5 years ago by PeterK2003
ok i can't attach an image for some reason so it is here:
comment:3 Changed 5 years ago by alec
- Milestone changed from later to 0.2-beta
comment:4 Changed 5 years ago by thomasb
- Component changed from User Interface to PHP backend
- Milestone changed from 0.2-beta to later
We need the headers of those messages to find the bug. Could be some date-sent and date-arrived problem.
comment:5 Changed 5 years ago by PeterK2003
the next time i notice it i will grab the header.
It is really weird though i have noticed that a message will be out of order then you refresh the page and then it will be sorted correctly.
comment:6 Changed 5 years ago by PeterK2003
Return-Path: <ret_18_2008-08-06@…>
Received: from tomcat.vpi.net ([64.58.142.37]) by mail.XXXX.name with hMailServer ; Wed, 6 Aug 2008 07:20:39 -0400
Message-ID: <847572A9-FF2B-4E3E-8078-D71A7872A569@…>
From: "Dilbert" <Dilbert@…>
Reply-To: Dilbert@…
Subject: Dilbert.com - Daily Strip Email
To: Peter Krum <Peter@…>
X-Sender: Dilbert@…
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
Delivered-To: Peter@…
comment:7 Changed 5 years ago by PeterK2003
Return-Path: <ret_18_2008-08-08@…>
Received: from tomcat.vpi.net ([64.58.142.37]) by mail.XXXX.name with hMailServer ; Fri, 8 Aug 2008 07:22:36 -0400
Message-ID: <AB2E2939-286E-4D9F-BA11-746E4ECB6C17@…>
From: "Dilbert" <Dilbert@…>
Reply-To: Dilbert@…
Subject: Dilbert.com - Daily Strip Email
To: Peter Krum <Peter@…>
X-Sender: Dilbert@…
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
Delivered-To: Peter@…
comment:8 Changed 5 years ago by PeterK2003
Return-Path: <ret_18_2008-08-12@…>
X-Spam-Checker-Version: SpamAssassin? 3.2.3 (2007-08-08) on sir-lancelot.XXXX.name
X-Spam-Level:
X-Spam-Status: No, score=-1.0 required=6.3 tests=AWL,BAYES_00, HTML_IMAGE_RATIO_06,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,MIME_HTML_ONLY, MISSING_DATE,RDNS_NONE shortcircuit=no autolearn=no version=3.2.3
Received: from tomcat.vpi.net ([64.58.142.37]) by mail.XXXX.name with hMailServer ; Tue, 12 Aug 2008 07:14:45 -0400
Message-ID: <CC40AF5F-2771-4D18-ABF0-9363987034A4@…>
From: "Dilbert" <Dilbert@…>
Reply-To: Dilbert@…
Subject: Dilbert.com - Daily Strip Email
To: Peter Krum <Peter@…>
X-Sender: Dilbert@…
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
Delivered-To: Peter@…
comment:9 Changed 5 years ago by PeterK2003
Return-Path: <prvs=customer.service2=10328948c@…>
X-Spam-Checker-Version: SpamAssassin? 3.2.3 (2007-08-08) on sir-lancelot.XXXX.name
X-Spam-Level:
X-Spam-Status: No, score=-1.4 required=6.3 tests=BAYES_00,INVALID_DATE, RDNS_NONE,SPF_PASS shortcircuit=no autolearn=no version=3.2.3
Received: from mail1.digikey.com ([204.221.76.202]) by mail.XXXX.name with hMailServer ; Tue, 12 Aug 2008 15:39:20 -0400
Message-Id: <70fo5a$e6dqt@…>
Subject: Shipment from Digi-Key Corporation
From: customer.service2@…
Date: 12 AUG 08 19:12:12 UT
To: PETER@…
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"
Delivered-To: PETER@…
comment:10 Changed 5 years ago by abaum
I have this problem, too. It happens to messages that I copied manually onto the IMAP server (tuffmail.com). Obviously, the server uses the arrival date (today) instead of the message's real date (some days ago).
comment:11 Changed 5 years ago by alec
- Milestone changed from later to 0.2-beta
comment:12 Changed 5 years ago by abaum
Thunderbird sorts in correct way. Since I'm a normal user, I can't specify where the bug is: on the mail server, in RC - or in Thunderbird (e.g. ignoring some standards).
comment:13 follow-up: ↓ 15 Changed 5 years ago by robin
Need better examples. Only one of the above header-lists has a Date header.
comment:14 Changed 5 years ago by PeterK2003
hmmm i didn't notice that before. I think that maybe the problem. Is it possible to sort he message based on when it is received if the date header is missing?
Changed 5 years ago by abaum
comment:15 in reply to: ↑ 13 Changed 5 years ago by abaum
Replying to robin:
I attached the relevant headers for two messages who are sorted improperly. When I sort by date (descending), the first message is always shown first (although it is older).
comment:16 Changed 5 years ago by robin
Thanks.
However, they sort fine on my setup. I'm running Dovecot. I'm afraid it's going to need some IMAP protocol debugging.
What type server are you using?
comment:17 Changed 5 years ago by PeterK2003
i am running hmailserver(http://hmailserver.com)
comment:18 Changed 5 years ago by tensor
- Severity changed from normal to minor
I also have a good sort with 2 messages from headers.txt.
I am running Courier.
comment:19 Changed 4 years ago by alec
Also works for me (dovecot). Try current svn-trunk version. If problem still exists uncomment console() calls in lib/imap.inc and check logs/console.
comment:20 Changed 4 years ago by alec
- Resolution set to worksforme
- Status changed from new to closed
No feedback. Works for (not only) me.
comment:21 Changed 4 years ago by haba713
- Cc haba713@… added
- Resolution worksforme deleted
- Severity changed from minor to normal
- Status changed from closed to reopened
This issue is still open. Here's my Google inbox (IMAP) seen with Roundcube 0.2.2, Roundcube [0b9dcdd6] and Thunderbird 2.0.0.21. One of the messages does not position properly:
This one is the first issue reported by users after taking RoundCube into production use and IMHO this is not a minor but normal issue.
comment:22 Changed 4 years ago by alec
- Milestone changed from 0.2-stable to 0.3-stable
Attach the message headers, please.
comment:23 Changed 4 years ago by alec
Sorting in Roundcube depends on order returned from IMAP SORT command (if server supports it), so you should uncomment console() in lib/imap.inc and check imap log in logs/console. If google server returns wrong order we can do nothing about it.
comment:24 Changed 4 years ago by alec
- Resolution set to worksforme
- Status changed from reopened to closed
No feedback.
comment:25 Changed 4 years ago by mbo
- Version changed from 0.2-alpha to 0.3-stable
I've found out that the sorting-error occurs when the "Date"-Header is missing. Is it possible to switch to alternatives like "Delivery-date"?
comment:26 Changed 4 years ago by mbo
- Resolution worksforme deleted
- Status changed from closed to reopened
comment:27 Changed 4 years ago by alec
- Resolution set to fixed
- Status changed from reopened to closed
Please do not reopen this old bug. If you have related issue open a new ticket. Describe your environment, IMAP server name/version, etc. Also attach imap_debug output and check current svn-trunk version.


i'll attach an screen shot later.