<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Clean up date/arrival/sequence sorting</title> 
  <pubDate>Thu, 09 Apr 2026 21:49:29 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8936</link> 
  <atom:link rel="self" type="application/rss+xml" title="Clean up date/arrival/sequence sorting" href="https://bugs.horde.org/ticket/8936/rss" /> 
  <description>Clean up date/arrival/sequence sorting</description> 
 
   
   
  <item> 
   <title>Date sort = date in message
Arrival sort = internal imap da</title> 
   <description>Date sort = date in message
Arrival sort = internal imap date of message
sequence sort = straight numeric sort of sequence numbers (order in which messages were added to the mailbox)

Sequence sort needs to be default because it is the only reasonable sort that can be done without parsing headers across all IMAP servers

Arrival sort in IMP 4.x referred to sequence sort - arrival sort was never defined in RFC 3501 but it makes sense that it is the arrival order into the mailbox.  Additionally, arrival/sequence sort (at least in IMP) had the sequence numbers which clearly indicates the sort was being done on sequence numbers (not that this means anything to the average user).  Then RFC 5256 goes and confuses thing but defining a SORT ARRIVAL which sorts by internaldate.

In IMP 5, to clean this up, do the following:
1.) Rewrite Horde_Imap_Client to handle sequence sort - obtained doing a SEARCH (not a SORT on imap servers that support the latter) and then doing numeric sorting on the client side.
2.) IMP defaults to sequence sort for same reason as in IMP 4.x.
3.) Only display one type of date search in mailbox headings.  Determining whether this does a Header Date or an Internaldate search is left to a preference, locked by default.  By default, resort to Internaldate (since this tends to be more accurate than the Date header - see, e.g., Spam headers dated way in the future/past).
4.) Determine how to allow user to resort back to sequence sort.  Call this sort &quot;no sorting&#039;.</description> 
   <pubDate>Fri, 26 Mar 2010 22:14:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8936#t58318</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Ticket #8936</title> 
   <description>Changes have been made in Git for this ticket:

Ticket #8936: Add sequence sorting to search().

http://git.horde.org/diff.php/framework/Imap_Client/lib/Horde/Imap/Client.php?rt=horde-git&amp;r1=2b94e501f39024682944dcdc7f3e439c02ba22de&amp;r2=c5d8fa67cd3937f6e596a7e722c7612074332094
http://git.horde.org/diff.php/framework/Imap_Client/lib/Horde/Imap/Client/Base.php?rt=horde-git&amp;r1=6cd3cda12c3c47c197be00e492b5e3370e93a2cb&amp;r2=c5d8fa67cd3937f6e596a7e722c7612074332094
http://git.horde.org/diff.php/framework/Imap_Client/lib/Horde/Imap/Client/Cclient.php?rt=horde-git&amp;r1=1176375ff3e866d7aad6fdcf46332d1c0f88cecb&amp;r2=c5d8fa67cd3937f6e596a7e722c7612074332094
http://git.horde.org/diff.php/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php?rt=horde-git&amp;r1=2e30f44d1cd66748fe7787e8a2293cef8d9c5989&amp;r2=c5d8fa67cd3937f6e596a7e722c7612074332094
http://git.horde.org/diff.php/framework/Imap_Client/lib/Horde/Imap/Client/Socket/Pop3.php?rt=horde-git&amp;r1=1176375ff3e866d7aad6fdcf46332d1c0f88cecb&amp;r2=c5d8fa67cd3937f6e596a7e722c7612074332094
http://git.horde.org/diff.php/framework/Imap_Client/package.xml?rt=horde-git&amp;r1=2b94e501f39024682944dcdc7f3e439c02ba22de&amp;r2=c5d8fa67cd3937f6e596a7e722c7612074332094</description> 
   <pubDate>Fri, 26 Mar 2010 23:10:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8936#t58320</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Ticket #8936</title> 
   <description>Changes have been made in Git for this ticket:

Ticket #8936: Simplified date sorting UI in IMP

http://git.horde.org/diff.php/imp/config/prefs.php.dist?rt=horde-git&amp;r1=d82e56a0088330e5f77911a5a9aeb4d996c9b10d&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-git&amp;r1=b52d7646b607b11d6ec24b306f764db6a4995595&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/js/DimpBase.js?rt=horde-git&amp;r1=8e71015c8f9e4ad9f6c772b73abab210ba7a3354&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/lib/Block/Newmail.php?rt=horde-git&amp;r1=205d6b608b229dbc485b89469d5a4039c58dcff0&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/lib/IMP.php?rt=horde-git&amp;r1=240ff73e2a3bcfe5e5649e5d9153d87b25471d36&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/lib/LoginTasks/SystemTask/UpgradeFromImp4.php?rt=horde-git&amp;r1=205d6b608b229dbc485b89469d5a4039c58dcff0&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/lib/Mailbox.php?rt=horde-git&amp;r1=d08804fd706e3cea9c3ea9aa9d9901b17dcf6fa9&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/lib/Search.php?rt=horde-git&amp;r1=12e455a324a5a44ca84c3d8939d50484eb9d9ad8&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/mailbox-mimp.php?rt=horde-git&amp;r1=a7a39f0cf109bc4fa2dec71b303d60d3d329746d&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/mailbox.php?rt=horde-git&amp;r1=55b00688ec61efc6d4b74eb5d7bd928ffb9a541a&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/rss.php?rt=horde-git&amp;r1=12e455a324a5a44ca84c3d8939d50484eb9d9ad8&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/templates/dimp/javascript_defs_dimp.php?rt=horde-git&amp;r1=55b00688ec61efc6d4b74eb5d7bd928ffb9a541a&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807
http://git.horde.org/diff.php/imp/templates/mimp/mailbox/mailbox.html?rt=horde-git&amp;r1=55b00688ec61efc6d4b74eb5d7bd928ffb9a541a&amp;r2=763bc2f73ce446d7c42ff21c2fdff51b27cbb807</description> 
   <pubDate>Fri, 26 Mar 2010 23:10:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8936#t58321</link> 
  </item> 
   
  <item> 
   <title>&gt; 1.) Rewrite Horde_Imap_Client to handle sequence sort - ob</title> 
   <description>&gt; 1.) Rewrite Horde_Imap_Client to handle sequence sort - obtained 
&gt; doing a SEARCH (not a SORT on imap servers that support the latter) 
&gt; and then doing numeric sorting on the client side.
&gt; 2.) IMP defaults to sequence sort for same reason as in IMP 4.x.
&gt; 3.) Only display one type of date search in mailbox headings.  
&gt; Determining whether this does a Header Date or an Internaldate search 
&gt; is left to a preference, locked by default.  By default, resort to 
&gt; Internaldate (since this tends to be more accurate than the Date 
&gt; header - see, e.g., Spam headers dated way in the future/past).

These tasks have been completed.
</description> 
   <pubDate>Fri, 26 Mar 2010 23:11:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8936#t58322</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Ticket #8936</title> 
   <description>Changes have been made in Git for this ticket:

Ticket #8936: Allow switching back to no sort (i.e. sequence sort)

http://git.horde.org/diff.php/imp/js/DimpBase.js?rt=horde-git&amp;r1=763bc2f73ce446d7c42ff21c2fdff51b27cbb807&amp;r2=8e662a4a7d28963cc28b2350fed6e873da5a9a57
http://git.horde.org/diff.php/imp/js/mailbox.js?rt=horde-git&amp;r1=d08804fd706e3cea9c3ea9aa9d9901b17dcf6fa9&amp;r2=8e662a4a7d28963cc28b2350fed6e873da5a9a57
http://git.horde.org/diff.php/imp/mailbox.php?rt=horde-git&amp;r1=763bc2f73ce446d7c42ff21c2fdff51b27cbb807&amp;r2=8e662a4a7d28963cc28b2350fed6e873da5a9a57
http://git.horde.org/diff.php/imp/templates/dimp/index.inc?rt=horde-git&amp;r1=285061a9f7cb521e9944e6e8e2076b4e4f442224&amp;r2=8e662a4a7d28963cc28b2350fed6e873da5a9a57
http://git.horde.org/diff.php/imp/templates/dimp/javascript_defs_dimp.php?rt=horde-git&amp;r1=763bc2f73ce446d7c42ff21c2fdff51b27cbb807&amp;r2=8e662a4a7d28963cc28b2350fed6e873da5a9a57
http://git.horde.org/diff.php/imp/templates/imp/mailbox/message_headers.html?rt=horde-git&amp;r1=55b00688ec61efc6d4b74eb5d7bd928ffb9a541a&amp;r2=8e662a4a7d28963cc28b2350fed6e873da5a9a57
http://git.horde.org/diff.php/imp/themes/screen.css?rt=horde-git&amp;r1=9803350eb8f44030f6b05588468a56ad99bd7401&amp;r2=8e662a4a7d28963cc28b2350fed6e873da5a9a57</description> 
   <pubDate>Tue, 30 Mar 2010 19:46:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8936#t58351</link> 
  </item> 
   
  <item> 
   <title>&gt; 4.) Determine how to allow user to resort back to sequence</title> 
   <description>&gt; 4.) Determine how to allow user to resort back to sequence sort.  Call this sort &quot;no sorting&#039;.

Done.  Not entirely happy with the IMP UI - but there doesn&#039;t seem to be a better place to put it at the moment (the actions bar - delete, blacklist, etc. - all deal with message actions, not mailbox actions).  I&#039;ll let this stew in the back of my head for now.</description> 
   <pubDate>Tue, 30 Mar 2010 19:49:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8936#t58352</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
