<?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>Mailbox sorting bugs</title> 
  <pubDate>Wed, 08 Apr 2026 08:01:46 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7296</link> 
  <atom:link rel="self" type="application/rss+xml" title="Mailbox sorting bugs" href="https://bugs.horde.org/ticket/7296/rss" /> 
  <description>Mailbox sorting bugs</description> 
 
   
   
  <item> 
   <title>If changing the sort order on empty (virtual) folders, the o</title> 
   <description>If changing the sort order on empty (virtual) folders, the order doesn&#039;t stick, i.e. the mailbox is resorted (even though it&#039;s empty), and comes back with the old sort column header highlighted.</description> 
   <pubDate>Sat, 06 Sep 2008 08:14:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t48744</link> 
  </item> 
   
  <item> 
   <title>This seems to work fine for me in the Git code.  Jan, can yo</title> 
   <description>This seems to work fine for me in the Git code.  Jan, can you try the code there?</description> 
   <pubDate>Tue, 31 Mar 2009 03:10:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53402</link> 
  </item> 
   
  <item> 
   <title>I can&#039;t load empty virtual folders at all atm. This is what </title> 
   <description>I can&#039;t load empty virtual folders at all atm. This is what I get when accessing a virtual folder from the sidebar:



( ! ) Fatal error: Horde_Imap_Client_Base::search() [horde-imap-client-base.search]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;imp_imap_search_query&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/jan/horde-git/framework/Imap_Client/lib/Horde/Imap/Client/Base.php on line 1315

Call Stack

#	Time	Memory	Function	Location

1	0,0059	460376	{main}( )	../mailbox.php:0

2	1,8616	13232148	IMP_Mailbox-&gt;buildMailboxPage( NULL, NULL, ??? )	../mailbox.php:258

3	1,8616	13232148	IMP_Mailbox-&gt;_buildMailbox( )	../Mailbox.php:434

4	1,8660	13308340	IMP_Search-&gt;runSearch( NULL, &#039;**search_nwnm9pgtv9c0w0g8c0&#039; )	../Mailbox.php:256

5	1,8704	13311560	Horde_Imap_Client_Base-&gt;search( &#039;INBOX.Mailinglisten.Bugtraq&#039;, class __PHP_Incomplete_Class { public $__PHP_Incomplete_Class_Name = &#039;imp_imap_search_query&#039;; public $_and = array (); public $_extendedSearch = array (); public $_flags = array (); public $_not = FALSE; public $_or = array (0 =&gt; array (0 =&gt; class __PHP_Incomplete_Class { ... }, 1 =&gt; class __PHP_Incomplete_Class { ... })); public $_query = NULL; public $_size = NULL; public $_sizeop = NULL }, array (&#039;reverse&#039; =&gt; &#039;1&#039;, &#039;sort&#039; =&gt; array (0 =&gt; &#039;0&#039;)) )	../Search.php:145</description> 
   <pubDate>Tue, 31 Mar 2009 09:01:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53407</link> 
  </item> 
   
  <item> 
   <title>&gt; ( ! ) Fatal error: Horde_Imap_Client_Base::search() 

&gt; [h</title> 
   <description>&gt; ( ! ) Fatal error: Horde_Imap_Client_Base::search() 

&gt; [horde-imap-client-base.search]: The script tried to execute a method 

&gt; or access a property of an incomplete object. Please ensure that the 

&gt; class definition &quot;imp_imap_search_query&quot;



You are going to have to recreate Virtual Folders for IMP 5.  I haven&#039;t written an upgrade script because 1.) there is no guarantee I won&#039;t change the internal search format 5 times before IMP 5 is released, and 2.) with the whole protected/private object model in PHP 5, it may no longer be possible to upgrade object structures  without mucking around with __get and __set commands, which IMHO is hackish and completely destroys the concept of private variables.</description> 
   <pubDate>Wed, 01 Apr 2009 19:34:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53455</link> 
  </item> 
   
  <item> 
   <title>&gt; This seems to work fine for me in the Git code.  Jan, can </title> 
   <description>&gt; This seems to work fine for me in the Git code.  Jan, can you try the 

&gt; code there?

There is actually no way to change the sort order on empty folders anymore, since the mailbox header is only displayed if there are messages in the folder. Thus this problem is moot now.</description> 
   <pubDate>Thu, 02 Apr 2009 09:08:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53467</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; This seems to work fine for me in the Git code.  Jan, can</title> 
   <description>&gt;&gt; This seems to work fine for me in the Git code.  Jan, can you try the

&gt;&gt; code there?

&gt; There is actually no way to change the sort order on empty folders 

&gt; anymore, since the mailbox header is only displayed if there are 

&gt; messages in the folder. Thus this problem is moot now.

</description> 
   <pubDate>Fri, 03 Apr 2009 17:15:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53481</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; This seems to work fine for me in the Git code.  Jan, ca</title> 
   <description>&gt;&gt;&gt; This seems to work fine for me in the Git code.  Jan, can you try the

&gt;&gt;&gt; code there?

&gt;&gt; There is actually no way to change the sort order on empty folders

&gt;&gt; anymore, since the mailbox header is only displayed if there are

&gt;&gt; messages in the folder. Thus this problem is moot now.



I don&#039;t see this - the mailbox header is always shown in dimp.  Are you talking about IMP or DIMP (this is a dimp ticket).</description> 
   <pubDate>Fri, 03 Apr 2009 17:16:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53482</link> 
  </item> 
   
  <item> 
   <title>Ah right, I missed this was originally about DIMP.



It&#039;s e</title> 
   <description>Ah right, I missed this was originally about DIMP.



It&#039;s even worse now. Changing the sort order in an empty folder still only reloads the mailbox without actually changing the order. If changing the sort order in a folder with messages, DIMP is constantly sending ListMessage requests now. This is a typical exchange:



cached	{22}INBOX.sent.sent-Privat1

cacheid	1238600802|3|2|8|0

request_id	1

rownum	1

slice	2:71

view	INBOX.sent.sent-Privat



/*-secure-{&quot;response&quot;:{&quot;viewport&quot;:{&quot;id&quot;:&quot;INBOX.sent.sent-Privat&quot;,&quot;reset&quot;:0,&quot;totalrows&quot;:2,&quot;label&quot;:&quot;sent

.sent-Privat&quot;,&quot;cacheid&quot;:&quot;1238600802|3|2|8|0&quot;,&quot;metadata&quot;:{&quot;sortby&quot;:8,&quot;sortdir&quot;:0,&quot;special&quot;:1,&quot;unseen&quot;

:0},&quot;rowlist&quot;:{&quot;1&quot;:2},&quot;data&quot;:[],&quot;request_id&quot;:&quot;1&quot;}}}*/

</description> 
   <pubDate>Fri, 03 Apr 2009 22:28:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53485</link> 
  </item> 
   
  <item> 
   <title>With my latest changes to ViewPort code, I don&#039;t see this an</title> 
   <description>With my latest changes to ViewPort code, I don&#039;t see this anymore.  Confirmed?</description> 
   <pubDate>Tue, 21 Apr 2009 05:56:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53798</link> 
  </item> 
   
  <item> 
   <title>No. When I click on the column header, it is shortly highlig</title> 
   <description>No. When I click on the column header, it is shortly highlighted, the mailbox reloaded, but when the reload finishes (quickly, because the mailbox is empty), it&#039;s back to no headers being highlighted.

On a related issue: the highlighting of subject vs. thread is swapped.</description> 
   <pubDate>Tue, 21 Apr 2009 09:54:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53805</link> 
  </item> 
   
  <item> 
   <title>&gt; On a related issue: the highlighting of subject vs. thread</title> 
   <description>&gt; On a related issue: the highlighting of subject vs. thread is swapped.

Scratch that. I was confused because sorting by subject is threaded too now. The difference to regular thread sorting is, that the base messages are sorted alphabetically instead of chronologically. Is that intended?</description> 
   <pubDate>Tue, 21 Apr 2009 09:58:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53806</link> 
  </item> 
   
  <item> 
   <title>&gt; No. When I click on the column header, it is shortly highl</title> 
   <description>&gt; No. When I click on the column header, it is shortly highlighted, the 

&gt; mailbox reloaded, but when the reload finishes (quickly, because the 

&gt; mailbox is empty), it&#039;s back to no headers being highlighted.



I don&#039;t see this at all.  Clicking on any sorting column is sticky for me.

</description> 
   <pubDate>Tue, 21 Apr 2009 15:40:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53811</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; On a related issue: the highlighting of subject vs. threa</title> 
   <description>&gt;&gt; On a related issue: the highlighting of subject vs. thread is swapped.

&gt; Scratch that. I was confused because sorting by subject is threaded 

&gt; too now. The difference to regular thread sorting is, that the base 

&gt; messages are sorted alphabetically instead of chronologically. Is 

&gt; that intended?



No.  Somewhere during the ViewPort rewrite the sortby check was lost.  This has been fixed.</description> 
   <pubDate>Tue, 21 Apr 2009 15:45:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53812</link> 
  </item> 
   
  <item> 
   <title>I see some other sorting weirdness now, in the IMP interface</title> 
   <description>I see some other sorting weirdness now, in the IMP interface. If sorting in reverse order, the mailbox pages are correctly sorted, but inside a single mailbox page, the sorting is in the wrong order.

For example I have:

page 1: March to April

page 2: January to February

while it should be:

page 1: April to March

page 2: February to March</description> 
   <pubDate>Wed, 22 Apr 2009 08:20:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53819</link> 
  </item> 
   
  <item> 
   <title>This the response that I get from the ViewPort action, that </title> 
   <description>This the response that I get from the ViewPort action, that doesn&#039;t let the sort column header stay highlighted in empty virtual folders:

{&quot;response&quot;:{&quot;ViewPort&quot;:{&quot;view&quot;:&quot;**search_136392034149d47fa4c3c3b&quot;,&quot;totalrows&quot;:0,&quot;label&quot;:&quot;IMP5&quot;

,&quot;cacheid&quot;:&quot;124038911327975780&quot;,&quot;metadata&quot;:{&quot;nothread&quot;:1,&quot;sortby&quot;:161,&quot;sortdir&quot;:1,&quot;search&quot;:1},&quot;rowlist&quot;

:[],&quot;data&quot;:[],&quot;update&quot;:1,&quot;request_id&quot;:3}}}</description> 
   <pubDate>Wed, 22 Apr 2009 08:33:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53820</link> 
  </item> 
   
  <item> 
   <title>&gt; This the response that I get from the ViewPort action, tha</title> 
   <description>&gt; This the response that I get from the ViewPort action, that doesn&#039;t 

&gt; let the sort column header stay highlighted in empty virtual folders:

&gt; {&quot;response&quot;:{&quot;ViewPort&quot;:{&quot;view&quot;:&quot;**search_136392034149d47fa4c3c3b&quot;,&quot;totalrows&quot;:0,&quot;label&quot;:&quot;IMP5&quot;

&gt; ,&quot;cacheid&quot;:&quot;124038911327975780&quot;,&quot;metadata&quot;:{&quot;nothread&quot;:1,&quot;sortby&quot;:161,&quot;sortdir&quot;:1,&quot;search&quot;:1},&quot;rowlist&quot;

&gt; :[],&quot;data&quot;:[],&quot;update&quot;:1,&quot;request_id&quot;:3}}}



How did you get sortby:161 (that&#039;s the old value for thread sort in IMP 4.  That constant is not used in IMP 5 and, regardless, threading is not available for search results).



I can confirm that thread sort is not available in DIMP when viewing Virtual Folders.</description> 
   <pubDate>Wed, 22 Apr 2009 18:23:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53832</link> 
  </item> 
   
  <item> 
   <title>&gt; I see some other sorting weirdness now, in the IMP interfa</title> 
   <description>&gt; I see some other sorting weirdness now, in the IMP interface. If 

&gt; sorting in reverse order, the mailbox pages are correctly sorted, but 

&gt; inside a single mailbox page, the sorting is in the wrong order.

&gt; For example I have:

&gt; page 1: March to April

&gt; page 2: January to February

&gt; while it should be:

&gt; page 1: April to March

&gt; page 2: February to March



I don&#039;t see this either.  Sorting via Date or sequence number, no matter the direction pref, works fine for me.</description> 
   <pubDate>Wed, 22 Apr 2009 18:25:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53833</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; This the response that I get from the ViewPort action, th</title> 
   <description>&gt;&gt; This the response that I get from the ViewPort action, that doesn&#039;t

&gt;&gt; let the sort column header stay highlighted in empty virtual folders:

&gt;&gt; {&quot;response&quot;:{&quot;ViewPort&quot;:{&quot;view&quot;:&quot;**search_136392034149d47fa4c3c3b&quot;,&quot;totalrows&quot;:0,&quot;label&quot;:&quot;IMP5&quot;

&gt;&gt; ,&quot;cacheid&quot;:&quot;124038911327975780&quot;,&quot;metadata&quot;:{&quot;nothread&quot;:1,&quot;sortby&quot;:161,&quot;sortdir&quot;:1,&quot;search&quot;:1},&quot;rowlist&quot;

&gt;&gt; :[],&quot;data&quot;:[],&quot;update&quot;:1,&quot;request_id&quot;:3}}}

&gt;

&gt; How did you get sortby:161 (that&#039;s the old value for thread sort in 

&gt; IMP 4.  That constant is not used in IMP 5 and, regardless, threading 

&gt; is not available for search results).



That&#039;s my default sorting order from the preferences. I got that result from hitting one of the columns in the empty virtual folder.</description> 
   <pubDate>Wed, 22 Apr 2009 20:26:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t53836</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; This the response that I get from the ViewPort action, t</title> 
   <description>&gt;&gt;&gt; This the response that I get from the ViewPort action, that doesn&#039;t

&gt;&gt;&gt; let the sort column header stay highlighted in empty virtual folders:

&gt;&gt;&gt; {&quot;response&quot;:{&quot;ViewPort&quot;:{&quot;view&quot;:&quot;**search_136392034149d47fa4c3c3b&quot;,&quot;totalrows&quot;:0,&quot;label&quot;:&quot;IMP5&quot;

&gt;&gt;&gt; ,&quot;cacheid&quot;:&quot;124038911327975780&quot;,&quot;metadata&quot;:{&quot;nothread&quot;:1,&quot;sortby&quot;:161,&quot;sortdir&quot;:1,&quot;search&quot;:1},&quot;rowlist&quot;

&gt;&gt;&gt; :[],&quot;data&quot;:[],&quot;update&quot;:1,&quot;request_id&quot;:3}}}

&gt;&gt;

&gt;&gt; How did you get sortby:161 (that&#039;s the old value for thread sort in

&gt;&gt; IMP 4.  That constant is not used in IMP 5 and, regardless, threading

&gt;&gt; is not available for search results).

&gt;

&gt; That&#039;s my default sorting order from the preferences. I got that 

&gt; result from hitting one of the columns in the empty virtual folder.



If your default sortorder is stored as integer value 161 in the preferences, that needs to be fixed in your pref backend.  Probably would be useful to have a conversion script for this kind of thing.</description> 
   <pubDate>Mon, 18 May 2009 23:10:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t54237</link> 
  </item> 
   
  <item> 
   <title>&gt; If your default sortorder is stored as integer value 161 i</title> 
   <description>&gt; If your default sortorder is stored as integer value 161 in the 

&gt; preferences, that needs to be fixed in your pref backend.  Probably 

&gt; would be useful to have a conversion script for this kind of thing.



That would usually done by a maintenance task like the one-time task in Turba.



At least it should fall back to some default sorting order if the stored value isn&#039;t correct.</description> 
   <pubDate>Tue, 19 May 2009 08:13:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t54241</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; If your default sortorder is stored as integer value 161 </title> 
   <description>&gt;&gt; If your default sortorder is stored as integer value 161 in the

&gt;&gt; preferences, that needs to be fixed in your pref backend.  Probably

&gt;&gt; would be useful to have a conversion script for this kind of thing.

&gt;

&gt; That would usually done by a maintenance task like the one-time task 

&gt; in Turba.



I disagree.  Maintenance tasks are OK for minor point releases.  But for transitioning between major releases, this needs to be part of admin-performed upgrade instructions.



&gt; At least it should fall back to some default sorting order if the 

&gt; stored value isn&#039;t correct.



This turns out to be a better place to check for this.  Although it adds a bit of overhead everytime the sortby pref is accessed, it is probably good to always make sure this value is valid anyway.</description> 
   <pubDate>Tue, 02 Jun 2009 19:30:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t54388</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; That would usually done by a maintenance task like the on</title> 
   <description>&gt;&gt; That would usually done by a maintenance task like the one-time task

&gt;&gt; in Turba.

&gt;

&gt; I disagree.  Maintenance tasks are OK for minor point releases.  But 

&gt; for transitioning between major releases, this needs to be part of 

&gt; admin-performed upgrade instructions.



IMO, when data needs to be massaged in a preference backend, it should be done as a mainenance task since not all preference backends can be accessed without an explicit user login. Unless I&#039;m missing something...</description> 
   <pubDate>Tue, 02 Jun 2009 21:59:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t54391</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; That would usually done by a maintenance task like the o</title> 
   <description>&gt;&gt;&gt; That would usually done by a maintenance task like the one-time task

&gt;&gt;&gt; in Turba.

&gt;&gt;

&gt;&gt; I disagree.  Maintenance tasks are OK for minor point releases.  But

&gt;&gt; for transitioning between major releases, this needs to be part of

&gt;&gt; admin-performed upgrade instructions.

&gt;

&gt; IMO, when data needs to be massaged in a preference backend, it 

&gt; should be done as a mainenance task since not all preference backends 

&gt; can be accessed without an explicit user login. Unless I&#039;m missing 

&gt; something...



The old IMP conversion scripts used to loop through a list of usernames to switch the pref backend as necessary.  And if you (as an admin) can not access the pref backends of any user, your system probably isn&#039;t setup very well.  I can&#039;t even begin to imagine how you can be expected to manage a pref backend without full admin access...



Regardless, this conversion is done at run-time in the instant case, so further discussion within the context of this ticket is irrelevant.</description> 
   <pubDate>Mon, 08 Jun 2009 18:15:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t54486</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Ticket #7296: Don&#039;t show thread graphics when in subject sort

http://git.horde.org/diff.php/imp/js/src/DimpBase.js?rt=horde-git&amp;r1=e99c124032b9cba7354d843a67e5567bf94833cc&amp;r2=7b83a6940f023cd40760c1b9e9945b34a1ec2a6c</description> 
   <pubDate>Wed, 13 Jan 2010 00:01:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t57557</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #7296: C</title> 
   <description>Changes have been made in Git for this ticket:

Bug #7296: Convert old IMP 4 sortby pref values

http://git.horde.org/diff.php/imp/lib/IMP.php?rt=horde-git&amp;r1=8118249de11e52b66910f50629bcf9d13c0131e2&amp;r2=e68135ff0f697b0a22e93fa23b3239d0dbc5eb54</description> 
   <pubDate>Wed, 13 Jan 2010 00:04:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7296#t57572</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
