<?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>Dovecot folders subscription</title> 
  <pubDate>Fri, 10 Apr 2026 16:54:38 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9102</link> 
  <atom:link rel="self" type="application/rss+xml" title="Dovecot folders subscription" href="https://bugs.horde.org/ticket/9102/rss" /> 
  <description>Dovecot folders subscription</description> 
 
   
   
  <item> 
   <title>Dovecot by default doesn&#039;t use subscription for INBOX (at le</title> 
   <description>Dovecot by default doesn&#039;t use subscription for INBOX (at least in my mailserver) and this produces a error in IMAP Tree Folders... Looking at the source code I could find an error when the INBOX is unsubscribed...

protected function _getList($showunsub) in imp/lib/Imap/Tree.php... This function tests if result list doesn&#039;t contain INBOX and FORCE an array to increment INBOX, however, this function use array_merge and it produces an error when some folder has a numeric name (in my case my folder is: 2009 or 2010)... 

Looking at PHP documentation I saw (http://php.net/manual/en/function.array-merge.php):
If all of the arrays contain only numeric keys, the resulting array is given incrementing keys starting from zero.
If you want to append array elements from the second array to the first array while not overwriting the elements from the first array and not re-indexing, use the + array union operator:
&lt;?php
$array1 = array(0 =&gt; &#039;zero_a&#039;, 2 =&gt; &#039;two_a&#039;, 3 =&gt; &#039;three_a&#039;);
$array2 = array(1 =&gt; &#039;one_b&#039;, 3 =&gt; &#039;three_b&#039;, 4 =&gt; &#039;four_b&#039;);
$result = $array1 + $array2;
var_dump($result);
?&gt;</description> 
   <pubDate>Fri, 18 Jun 2010 04:53:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9102#t59187</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #9102: Don&#039;t want to reindex array when adding INBOX

http://git.horde.org/diff.php/imp/lib/Imap/Tree.php?rt=horde-git&amp;r1=bf4719ffd4d666e00287a27dc1f42085a36ccb0e&amp;r2=2bb369ac9c5e8261ff06eff0fa01eb7541a7d21b</description> 
   <pubDate>Mon, 28 Jun 2010 20:46:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9102#t59243</link> 
  </item> 
   
  <item> 
   <title>Thank you Michael :)</title> 
   <description>Thank you Michael :)</description> 
   <pubDate>Mon, 28 Jun 2010 20:48:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9102#t59245</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
