<?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>Folders tree partially updated after a rename folder action</title> 
  <pubDate>Fri, 10 Apr 2026 05:02:46 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7772</link> 
  <atom:link rel="self" type="application/rss+xml" title="Folders tree partially updated after a rename folder action" href="https://bugs.horde.org/ticket/7772/rss" /> 
  <description>Folders tree partially updated after a rename folder action</description> 
 
   
   
  <item> 
   <title>Installation infos : horde-webmail-1.2 ; php-5.2.6 ; debian </title> 
   <description>Installation infos : horde-webmail-1.2 ; php-5.2.6 ; debian etch

I initially had this problem with the packaged imp-4.3, but it still remains with imp-4.3.2

Tested web browsers : Mozilla firefox 2.0.0.18, IE7, Safari 3.2 for windows (all on OS windows XP SP3)



By Dimp interface, after the renaming of a new folder, the folders tree is partially updated dynamically.



For instance, I try to rename the folder &quot;foo&quot; in &quot;bar&quot; :

- I get the message &#039;The folder &quot;foo&quot; was successfully renamed to &quot;bar&quot;&#039;.

- The folder &quot;bar&quot; appears successfully in the folders tree.

But :

- The folder &quot;foo&quot; doesn&#039;t disappear from the folders tree.



Setting the javascript debugging and using dimp/js/src doesn&#039;t produce any alert.



Refreshing the page doesn&#039;t produce any change.

I need to disconnect-reconnect to see the correct folders tree without the folder &quot;foo&quot;.





I have tried to understand  and it might be due to the use of the function _getList before the deletion of the folder &quot;foo&quot;.

It sets the static variable $full_list with the folder &quot;foo&quot; and caches it even after its correct deletion.

So, this folder is finally maintained and does not make part of the deleted folders in the getFolderResponse result.



I have followed a part of the calls (I get the same in imp-4.3 and imp-4.3.2).

If I am not mistaking, a part of the calls is :

with Folder as horde/imp/lib/Folder.php, Search as horde/imp/lib/Search.php, Tree as horde/imp/lib/IMAP/Tree.php

- Previous calls to folderList set $full_list with the folder &quot;foo&quot;

Folder.rename calls

  Folder._onDelete which calls

    Search.sessionSetup(true) which calls

      Search.createVINBOXFolder which calls

        Tree.getPollList which calls

          Tree.folderList which calls

            Tree.showUnsubscribed which calls

              Tree._getList which returns by the 1st return instruction with $full_list already set



I have put aside the use of $full_list to make the Tree._getList function returns by the 3rd return instruction.



I have modified horde/imp/lib/IMAP/Tree.php (v 1.25.2.60 and v 1.25.2.64), please see attached patch dimp_renamefolder.patch.

It can be applied on these two versions of the Tree.php.



Renaming a folder reacts dynamically and successfully :

- I get the message &#039;The folder &quot;foo&quot; was successfully renamed to &quot;bar&quot;&#039;.

- The folder &quot;foo&quot; smoothly disappears from the folders tree.

- The folder &quot;bar&quot; appears in the folders tree.

It seems to work (maybe a border side effect waiting in the dark) on the three web browsers mentioed above.



Thanks for reading and help.



Emeric</description> 
   <pubDate>Thu, 11 Dec 2008 14:22:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7772#t51195</link> 
  </item> 
   
  <item> 
   <title>Hi, 

A little feedback : I have the same behaviour with hor</title> 
   <description>Hi, 

A little feedback : I have the same behaviour with horde-webmail-1.2.1

The &quot;patch&quot; still works with the 3 web browsers mentioned.</description> 
   <pubDate>Mon, 15 Dec 2008 10:54:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7772#t51265</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/docs/CHANGES?r1=1.699.2.370&amp;r2=1.699.2.371&amp;ty=u
http://cvs.horde.org/diff.php/imp/lib/IMAP/Tree.php?r1=1.25.2.64&amp;r2=1.25.2.65&amp;ty=u</description> 
   <pubDate>Tue, 16 Dec 2008 07:52:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7772#t51279</link> 
  </item> 
   
  <item> 
   <title>Fixed in IMP 4.3.3 (backported some changes that were made t</title> 
   <description>Fixed in IMP 4.3.3 (backported some changes that were made to the eltDiff code in imp/lib/IMAP/Tree.php in IMP 5).</description> 
   <pubDate>Tue, 16 Dec 2008 07:52:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7772#t51280</link> 
  </item> 
   
  <item> 
   <title>I have patched my horde-webmail-1.2.1 installation with your</title> 
   <description>I have patched my horde-webmail-1.2.1 installation with your changes, and it works perfectly.



Thanks a lot.</description> 
   <pubDate>Tue, 16 Dec 2008 16:09:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7772#t51297</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Fix for Tick</title> 
   <description>Changes have been made in Git for this ticket:

Fix for Ticket #7772
Don&#039;t track tree changes when they are a result of viewing
unsubscribed/subscribed elements.

http://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-git&amp;r1=6c5d78042f5e4c84777d95f7b986ed8c68178cde&amp;r2=38a62a0f82f516f5b9af509ff95c4ee3424a5a13
http://git.horde.org/diff.php/imp/lib/IMAP/Tree.php?rt=horde-git&amp;r1=d7f793427c092e67d8e8461caf2f4cd368c9f4bd&amp;r2=38a62a0f82f516f5b9af509ff95c4ee3424a5a13</description> 
   <pubDate>Tue, 12 Jan 2010 23:55:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7772#t57477</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
