6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/20/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8922] Sort messages by arrival date not working correctly
*
Your Email Address
*
Spam protection
Enter the letters below:
\ / ..__ .__ . . >< |[__)[__)| | / \\__|| \| \|/\|
Comment
> On Fri, Mar 19, 2010 at 12:46:25PM -0400, bugs@horde.org wrote: >> Yes. ARRIVAL SORT = message sequence number. This statement is >> nothing more than providing a keyword to use for SORT to do the same >> thing as a regular arrival sort. > > We use cyrus here and it implements ARRIVAL SORT by comparing internal > dates from the mailbox index (no need to read header of every message). > It also implements a SEQUENCE SORT that uses just message numbers: > > switch (sortcrit[i].key) { > case SORT_SEQUENCE: > ret = numcmp(md1->msgno, md2->msgno); > break; > case SORT_ARRIVAL: > ret = numcmp(INTERNALDATE(md1->msgno), INTERNALDATE(md2->msgno)); > break; > >> Unfortunately, you are assuming a lot of things about IMAP servers. >> First, the SORT extension wasn't standardized until June *2008*. So >> there can be no assumption that the IMAP server supports SORT (not >> to mention IMP 4 was first released 5-6 years ago, before SORT >> existed on most IMAP servers). >> >> Second, many IMAP servers don't support SORT. It's not required of >> an IMAP 4rev1 server. Thus, to sort by anything other than internal >> arrival time requires the IMAP server to parse *EVERY* header of >> *EVERY* message in the mailbox (a MUA can use FETCH to only return >> the text of the desired header, but this still requires the IMAP >> server to internally parse every header to collate this >> information). >> >> Third, even for IMAP servers that support SORT, there is no >> guarantee that SORT is inexpensive. Many IMAP servers may not cache >> this information, so every SORT call to the server requires parsing >> of the entire mailbox. > > Ok, but for those of use using servers like cyrus, perhaps there could > at least be a configuration option to select between _arrival cache > and ARRIVAL SORT?
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers