<?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>Mailboxs with messages show as empty</title> 
  <pubDate>Thu, 09 Apr 2026 18:03:12 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8965</link> 
  <atom:link rel="self" type="application/rss+xml" title="Mailboxs with messages show as empty" href="https://bugs.horde.org/ticket/8965/rss" /> 
  <description>Mailboxs with messages show as empty</description> 
 
   
   
  <item> 
   <title>Viewing folders that I know contain messages results in IMP </title> 
   <description>Viewing folders that I know contain messages results in IMP showing them empty, with the following log entry:

2010-04-14 18:48:46: (mod_fastcgi.c.2570) FastCGI-stderr: PHP Notice:  Undefined index: sort in /horde/horde/imp/lib/Mailbox.php on line 321
PHP Stack trace:
PHP   1. {main}() /horde/horde/imp/mailbox.php:0
PHP   2. IMP_Mailbox-&gt;buildMailboxPage() /horde/horde/imp/mailbox.php:227
PHP   3. IMP_Mailbox-&gt;_buildMailbox() /horde/horde/imp/lib/Mailbox.php:491

It doesn&#039;t affect all folders, but I can&#039;t pin down the differences between the folders that are working, and those that are not.

The value of $res in Mailbox.php is:
array
  &#039;match&#039; =&gt; 
    array
      0 =&gt; string &#039;31351&#039; (length=5)
      1 =&gt; string &#039;31357&#039; (length=5)
      2 =&gt; string &#039;31358&#039; (length=5)
...

The working folders contain the sort element, as the code is expecting:

&#039;sort&#039; =&gt; 
    array
      0 =&gt; string &#039;43858&#039; (length=5)
      1 =&gt; string &#039;43857&#039; (length=5)
      2 =&gt; string &#039;43856&#039; (length=5)
      3 =&gt; string &#039;43855&#039; (length=5)
....



</description> 
   <pubDate>Wed, 14 Apr 2010 23:09:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58499</link> 
  </item> 
   
  <item> 
   <title>Duplicate of Ticket #8961 (are these mailboxes sorted by thr</title> 
   <description>Duplicate of Ticket #8961 (are these mailboxes sorted by thread?)?</description> 
   <pubDate>Wed, 14 Apr 2010 23:21:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58500</link> 
  </item> 
   
  <item> 
   <title>&gt; Duplicate of Ticket #8961

I thought it was similar, but</title> 
   <description>&gt; Duplicate of Ticket #8961

I thought it was similar, but the errors are in different places. 

&gt; (are these mailboxes sorted by thread?)?

Some of the affected folders could be, but not all of them.</description> 
   <pubDate>Wed, 14 Apr 2010 23:35:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58502</link> 
  </item> 
   
  <item> 
   <title>Hm... running the upgrade task (again) does not help - but m</title> 
   <description>Hm... running the upgrade task (again) does not help - but manually re-sorting the mailbox by *anything* seems to fix the display. 

I guess this bug is &quot;not a bug&quot;, but maybe it&#039;s an issue with the upgrade task?</description> 
   <pubDate>Wed, 14 Apr 2010 23:38:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58503</link> 
  </item> 
   
  <item> 
   <title>In my case, the prefs got corrupt by using the same prefs ta</title> 
   <description>In my case, the prefs got corrupt by using the same prefs table with FW_3 and Git. Try running the upgrade task with a fresh prefs table copy of a FW_3 install.</description> 
   <pubDate>Thu, 15 Apr 2010 07:43:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58504</link> 
  </item> 
   
  <item> 
   <title>I spoke too early. I have gone through all kind of folders n</title> 
   <description>I spoke too early. I have gone through all kind of folders now, and I&#039;m now seeing this error message too, even with a cleanly upgraded preference. This happens with mailboxes (originally) sorted by date.</description> 
   <pubDate>Thu, 15 Apr 2010 07:50:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58505</link> 
  </item> 
   
  <item> 
   <title>I didn&#039;t really wake up yet. The error *message* is the same</title> 
   <description>I didn&#039;t really wake up yet. The error *message* is the same, but on a different place in the code, actually at the same line like in bug #8961:

( ! ) Notice: Undefined index: sort in /home/jan/horde-git/framework/Imap_Client/lib/Horde/Imap/Client/Base.php on line 1476
Call Stack
#	Time	Memory	Function	Location
1	0,0051	686992	{main}( )	../mailbox.php:0
2	0,5178	14019660	IMP_Mailbox-&gt;buildMailboxPage( NULL, NULL, ??? )	../mailbox.php:227
3	0,5178	14019776	IMP_Mailbox-&gt;_buildMailbox( )	../Mailbox.php:491
4	0,5372	14288380	IMP_Search-&gt;imapSearch( &#039;INBOX.horde.cvs&#039;, NULL, array (&#039;sort&#039; =&gt; array (0 =&gt; &#039;0&#039;), &#039;reverse&#039; =&gt; TRUE) )	../Mailbox.php:320
5	0,5372	14288540	Horde_Imap_Client_Base-&gt;search( &#039;INBOX.horde.cvs&#039;, NULL, array (&#039;sort&#039; =&gt; array (0 =&gt; &#039;0&#039;), &#039;reverse&#039; =&gt; TRUE) )	../Search.php:344</description> 
   <pubDate>Thu, 15 Apr 2010 07:52:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58506</link> 
  </item> 
   
  <item> 
   <title>I&#039;m also seeing some strange sorting, when sorting by Date, </title> 
   <description>I&#039;m also seeing some strange sorting, when sorting by Date, I&#039;m getting some new email that is being placed somewhere in the middle of my list, while others are getting placed correctly.</description> 
   <pubDate>Thu, 15 Apr 2010 15:37:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58516</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve pushed some changes to the sort code in IMP - might wan</title> 
   <description>I&#039;ve pushed some changes to the sort code in IMP - might want to try that to see if it helps things.

Also, be aware that date sorting recently changed in IMP.  Date sort no longer occurs by the header date, but rather the internal date (at least by default).</description> 
   <pubDate>Fri, 16 Apr 2010 19:02:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58532</link> 
  </item> 
   
  <item> 
   <title>Works for me.</title> 
   <description>Works for me.</description> 
   <pubDate>Fri, 16 Apr 2010 21:51:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58536</link> 
  </item> 
   
  <item> 
   <title>The empty mailbox issue appears to have been resolved for me</title> 
   <description>The empty mailbox issue appears to have been resolved for me, but (and this might be that I am missing the correct config somewhere), I am still seeing very strange sorting behavior.  You say that the code now no longer sorts by the date in the header, but from the server&#039;s internal date by default. I am constantly getting new messages inserted in the middle of my mailbox listings. How can I change this from the default to something that would work as expected for me?</description> 
   <pubDate>Sat, 17 Apr 2010 16:24:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58544</link> 
  </item> 
   
  <item> 
   <title>&gt; The empty mailbox issue appears to have been resolved for </title> 
   <description>&gt; The empty mailbox issue appears to have been resolved for me, but 
&gt; (and this might be that I am missing the correct config somewhere), I 
&gt; am still seeing very strange sorting behavior.  You say that the code 
&gt; now no longer sorts by the date in the header, but from the server&#039;s 
&gt; internal date by default. I am constantly getting new messages 
&gt; inserted in the middle of my mailbox listings. How can I change this 
&gt; from the default to something that would work as expected for me?

It would be the &#039;datesort&#039; pref.  Although, before you change that, is it possible to do a bit of IMAP logging to ensure that the right sort algorithm is being used?</description> 
   <pubDate>Mon, 19 Apr 2010 19:29:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58576</link> 
  </item> 
   
  <item> 
   <title>Of course, now I am not seeing any of the incorrectly sorted</title> 
   <description>Of course, now I am not seeing any of the incorrectly sorted email in my inbox. Going to assume it was a transient issue, will open another bug if I see it reappear.

Thanks.</description> 
   <pubDate>Sat, 24 Apr 2010 13:54:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8965#t58627</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
