<?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>Incomplete Thread View</title> 
  <pubDate>Fri, 10 Apr 2026 07:55:23 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/1257</link> 
  <atom:link rel="self" type="application/rss+xml" title="Incomplete Thread View" href="https://bugs.horde.org/ticket/1257/rss" /> 
  <description>Incomplete Thread View</description> 
 
   
   
  <item> 
   <title>When you delete a message the resulting array containing thr</title> 
   <description>When you delete a message the resulting array containing thread

structure is missing the matching index, and this is correct. but when

you try to get the thread list iterating $key it breaks and you get an

incomplete list. The right behaviour should be to continue with next step.</description> 
   <pubDate>Thu, 27 Jan 2005 07:59:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1257#t4932</link> 
  </item> 
   
  <item> 
   <title>Please attach the patch you mentioned to this ticket.</title> 
   <description>Please attach the patch you mentioned to this ticket.</description> 
   <pubDate>Thu, 27 Jan 2005 15:15:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1257#t4949</link> 
  </item> 
   
  <item> 
   <title>ok, this is the patch for this problem that fixes also anoth</title> 
   <description>ok, this is the patch for this problem that fixes also another issue, (you get a broken thread if the thread contains the first message of the mailbox)</description> 
   <pubDate>Thu, 10 Feb 2005 11:07:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1257#t5407</link> 
  </item> 
   
  <item> 
   <title>This patch makes no sense.  First, why are you changing the </title> 
   <description>This patch makes no sense.  First, why are you changing the return value of getKey from false to null?  That doesn&#039;t get you anywhere.  Second, why are you using ++$key instead of $key++?  You are missing a whole potential case by doing this.  Third, if ($this-&gt;_thread[$key]) doesn&#039;t exist, you have a mailbox that is corrupt - that code should never be reached or else there are issues elsewhere.  So it makes a whole bunch of sense to exit the loop rather than ignore the entry - which may lead to some very weird output.</description> 
   <pubDate>Fri, 11 Feb 2005 03:52:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1257#t5424</link> 
  </item> 
   
  <item> 
   <title>Also wanted to mention that I have not been able to reproduc</title> 
   <description>Also wanted to mention that I have not been able to reproduce a situation that leads to incomplete thread view (viewing/deleting a thread item that is the first item in the mailbox, for example, doesn&#039;t cause any error for me).  There is no detailed description in this bug report on how to reliably reproduce unwanted behavior.</description> 
   <pubDate>Fri, 11 Feb 2005 03:54:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1257#t5425</link> 
  </item> 
   
  <item> 
   <title>Response from K-team:

Sorry, I thought it was clear....you </title> 
   <description>Response from K-team:

Sorry, I thought it was clear....you just have to send a mail from an

empty mailbox and reply a couple of times, so that you have a thread.

if you sort the mailbox by thread it seems good, but when you read a

message from the thread, if you click on &quot;View Thread&quot; it shows just

the message you were reading. After investigating a while I noticed

that _getKey sometimes returns key=0 for the first mail in thread. in

getThreadBase this test:

 if ($key = $this-&gt;_getKey($index))

fails if $key is 0, so I modifyed it in

 $key = $this-&gt;_getKey($index); + if (isset($key))

and set return value to null in _getKey when it fails.

I also changed $key++ to ++$key for the same reason, the while loop

breaks soon if $key is 0.

As far as regards the third point, I&#039;ve run into a situation in which

a deleted message breaks the thread and it displays nothing, so

thought it was better to end the cycle and just skip the message.



Hope it&#039;s clearer now

 K-team</description> 
   <pubDate>Wed, 16 Feb 2005 07:50:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1257#t5525</link> 
  </item> 
   
  <item> 
   <title>OK - I wasn&#039;t understanding that you were seeing this on the</title> 
   <description>OK - I wasn&#039;t understanding that you were seeing this on the thread screen - I thought this was something you were seeing on the mailbox screen.



I&#039;ve modified your patch to check for the &quot;nullness&quot; of the return value, as well as fixing several other functions and the use of $key.  For now, I am not going to address your 3rd point since I have not yet seen this behavior.</description> 
   <pubDate>Wed, 16 Feb 2005 07:55:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1257#t5526</link> 
  </item> 
   
  <item> 
   <title>The fix has been applied to HEAD and Horde 3.0.4, BTW.</title> 
   <description>The fix has been applied to HEAD and Horde 3.0.4, BTW.</description> 
   <pubDate>Wed, 16 Feb 2005 07:56:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1257#t5527</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
