<?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>Vfolder prefs not correctly updated</title> 
  <pubDate>Fri, 10 Apr 2026 01:27:08 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9692</link> 
  <atom:link rel="self" type="application/rss+xml" title="Vfolder prefs not correctly updated" href="https://bugs.horde.org/ticket/9692/rss" /> 
  <description>Vfolder prefs not correctly updated</description> 
 
   
   
  <item> 
   <title>I see two issues with upgrading of vfolder preferences:

1</title> 
   <description>I see two issues with upgrading of vfolder preferences:

1) The initial_page pref needs to updated, if it contains **search_......
Sidenote: is there any reason why the notification message about mailbox not found is displayed 3 times in the interface and 19 times in the log?

2) The vfolder pref is not correctly converted.
To test this, I created a fresh vfolder preference in IMP 4 and migrated that to IMP 5. The original preference value was:

a:1:{s:22:&quot;45lr2nhothesccksok8kco&quot;;a:5:{s:5:&quot;query&quot;;s:378:&quot;O:21:&quot;IMP_IMAP_Search_Query&quot;:8:{s:4:&quot;_and&quot;;a:1:{i:0;a:1:{i:0;O:21:&quot;IMP_IMAP_Search_Query&quot;:8:{s:4:&quot;_and&quot;;a:0:{}s:15:&quot;_extendedSearch&quot;;a:0:{}s:6:&quot;_flags&quot;;a:0:{}s:4:&quot;_not&quot;;N;s:3:&quot;_or&quot;;a:0:{}s:6:&quot;_query&quot;;s:12:&quot;BODY &quot;horde&quot;&quot;;s:5:&quot;_size&quot;;N;s:7:&quot;_sizeop&quot;;N;}}}s:15:&quot;_extendedSearch&quot;;a:0:{}s:6:&quot;_flags&quot;;a:0:{}s:4:&quot;_not&quot;;b:0;s:3:&quot;_or&quot;;a:0:{}s:6:&quot;_query&quot;;N;s:5:&quot;_size&quot;;N;s:7:&quot;_sizeop&quot;;N;}&quot;;s:7:&quot;folders&quot;;a:5:{i:0;s:27:&quot;INBOX.Mailinglisten.Bugtraq&quot;;i:1;s:25:&quot;INBOX.Mailinglisten.Cyrus&quot;;i:2;s:25:&quot;INBOX.Mailinglisten.Kolab&quot;;i:3;s:28:&quot;INBOX.Mailinglisten.pear-dev&quot;;i:4;s:27:&quot;INBOX.Mailinglisten.php-dev&quot;;}s:6:&quot;uiinfo&quot;;a:10:{s:5:&quot;field&quot;;a:4:{i:0;s:4:&quot;from&quot;;i:1;s:2:&quot;to&quot;;i:2;s:7:&quot;subject&quot;;i:3;s:4:&quot;body&quot;;}s:9:&quot;field_end&quot;;i:4;s:5:&quot;match&quot;;s:3:&quot;and&quot;;s:4:&quot;text&quot;;a:4:{i:0;s:0:&quot;&quot;;i:1;s:0:&quot;&quot;;i:2;s:0:&quot;&quot;;i:3;s:5:&quot;horde&quot;;}s:8:&quot;text_not&quot;;N;s:4:&quot;date&quot;;N;s:7:&quot;folders&quot;;a:5:{i:0;s:27:&quot;INBOX.Mailinglisten.Bugtraq&quot;;i:1;s:25:&quot;INBOX.Mailinglisten.Cyrus&quot;;i:2;s:25:&quot;INBOX.Mailinglisten.Kolab&quot;;i:3;s:28:&quot;INBOX.Mailinglisten.pear-dev&quot;;i:4;s:27:&quot;INBOX.Mailinglisten.php-dev&quot;;}s:12:&quot;save_vfolder&quot;;s:2:&quot;on&quot;;s:13:&quot;vfolder_label&quot;;s:5:&quot;Horde&quot;;s:4:&quot;mbox&quot;;N;}s:5:&quot;label&quot;;s:5:&quot;Horde&quot;;s:7:&quot;vfolder&quot;;b:1;}}

The converted is:

a:2:{i:0;C:25:&quot;IMP_Search_Vfolder_Vinbox&quot;:30:{a:2:{s:1:&quot;e&quot;;i:1;s:1:&quot;v&quot;;i:1;}}i:1;C:18:&quot;IMP_Search_Vfolder&quot;:378:{a:6:{s:1:&quot;c&quot;;a:1:{i:0;C:23:&quot;IMP_Search_Element_Text&quot;:29:{[1,{&quot;b&quot;:1,&quot;n&quot;:0,&quot;t&quot;:&quot;horde&quot;}]}}s:1:&quot;e&quot;;i:1;s:1:&quot;i&quot;;s:23:&quot;xEDdYxPcj3hNh86y1_NxbqA&quot;;s:1:&quot;l&quot;;s:5:&quot;Horde&quot;;s:1:&quot;m&quot;;a:5:{i:0;s:27:&quot;INBOX.Mailinglisten.Bugtraq&quot;;i:1;s:25:&quot;INBOX.Mailinglisten.Cyrus&quot;;i:2;s:25:&quot;INBOX.Mailinglisten.Kolab&quot;;i:3;s:28:&quot;INBOX.Mailinglisten.pear-dev&quot;;i:4;s:27:&quot;INBOX.Mailinglisten.php-dev&quot;;}s:1:&quot;v&quot;;i:1;}}}

The problem with the latter is that it result in those vfolder labels and ids:

impsearch\0vinbox
impsearch\0xEDdYxPcj3hNh86y1_NxbqA

\0 is the nul character.</description> 
   <pubDate>Mon, 21 Mar 2011 22:26:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62503</link> 
  </item> 
   
  <item> 
   <title>&gt; impsearch\0vinbox
&gt; impsearch\0xEDdYxPcj3hNh86y1_NxbqA
&gt;</title> 
   <description>&gt; impsearch\0vinbox
&gt; impsearch\0xEDdYxPcj3hNh86y1_NxbqA
&gt;
&gt; \0 is the nul character.

Those are correct vfolder names.  What do you think is wrong with those?  (The null character is expected and necessary)</description> 
   <pubDate>Tue, 22 Mar 2011 03:00:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62510</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #9692: Handle virtual folders in IMP 4 initial_page pref

 1 files changed, 8 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/4d790b8bbc700fc1b0721106502bfdca6615e3d7</description> 
   <pubDate>Tue, 22 Mar 2011 03:08:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62511</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #9692: Correct strpos() usage

 1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/bf958b5e031e0c8e04ea4878a94dfc15e81aab3e</description> 
   <pubDate>Tue, 22 Mar 2011 03:08:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62512</link> 
  </item> 
   
  <item> 
   <title>&gt; 1) The initial_page pref needs to updated, if it contains </title> 
   <description>&gt; 1) The initial_page pref needs to updated, if it contains **search_......

Unfortunately, there is not really an easy way to convert an old vfolder name to a new ID.  So check for an IMP 4 virtual folder ID and, if found, delete the preference value.

&gt; Sidenote: is there any reason why the notification message about 
&gt; mailbox not found is displayed 3 times in the interface and 19 times 
&gt; in the log?

Sure - IMP 5 doesn&#039;t recognize IMP 4 virtual folders as search mailboxes, so it will attempt to do all sorts of things on the IMAP server thinking the mailbox is a &quot;real&quot; mailbox.  This would cause all the errors.</description> 
   <pubDate>Tue, 22 Mar 2011 03:09:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62513</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; impsearch\0vinbox
&gt;&gt; impsearch\0xEDdYxPcj3hNh86y1_NxbqA</title> 
   <description>&gt;&gt; impsearch\0vinbox
&gt;&gt; impsearch\0xEDdYxPcj3hNh86y1_NxbqA
&gt;&gt;
&gt;&gt; \0 is the nul character.
&gt;
&gt; Those are correct vfolder names.  What do you think is wrong with 
&gt; those?  (The null character is expected and necessary)

It&#039;s wrong that this is also used as the mailbox *label* after the conversion.</description> 
   <pubDate>Tue, 22 Mar 2011 09:50:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62526</link> 
  </item> 
   
  <item> 
   <title>The changes don&#039;t make much difference for me. Now, I have t</title> 
   <description>The changes don&#039;t make much difference for me. Now, I have two folders under Virtual Folders, but:
- They still don&#039;t have the correct label
- They are not detected as virtual folders (no edit/delete links, no results when opening them)
- Virtual Folders (at least those converted ones) don&#039;t show up in the drop list any more at all.</description> 
   <pubDate>Tue, 22 Mar 2011 09:55:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62527</link> 
  </item> 
   
  <item> 
   <title>The changes I made have nothing to do with virtual folder di</title> 
   <description>The changes I made have nothing to do with virtual folder display - they were solely related to issue #1 in this ticket (initial page preference).</description> 
   <pubDate>Tue, 22 Mar 2011 16:43:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62533</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #9692: Fix upgrading virtual folders from IMP 4

 3 files changed, 35 insertions(+), 47 deletions(-)
http://git.horde.org/horde-git/-/commit/7c4e25ec5cdc74a4c2619e4f836e2fe7f0e0ec80</description> 
   <pubDate>Tue, 22 Mar 2011 17:41:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62534</link> 
  </item> 
   
  <item> 
   <title>I think this should fix things.  The problem wasn&#039;t the upgr</title> 
   <description>I think this should fix things.  The problem wasn&#039;t the upgrading - it was the rebuilding of the virtual folder list inside of IMP_Search.  After an upgrade, the virtual folders were not stored by their ID in the internal array, so they were not recognized as virtual folders.</description> 
   <pubDate>Tue, 22 Mar 2011 17:43:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62535</link> 
  </item> 
   
  <item> 
   <title>Works great now, thanks! The only (new) issue is that the vi</title> 
   <description>Works great now, thanks! The only (new) issue is that the virtual folder is not selected in the drop down list when opening it.</description> 
   <pubDate>Tue, 22 Mar 2011 17:59:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62536</link> 
  </item> 
   
  <item> 
   <title>&gt; Works great now, thanks! The only (new) issue is that the </title> 
   <description>&gt; Works great now, thanks! The only (new) issue is that the virtual 
&gt; folder is not selected in the drop down list when opening it.

Which drop down menu?  The one in IMP&#039;s menubar?  Works fine for me.

Did you rebuild the folder tree manually or do a logout/login?</description> 
   <pubDate>Tue, 22 Mar 2011 18:17:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62538</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Works great now, thanks! The only (new) issue is that the</title> 
   <description>&gt;&gt; Works great now, thanks! The only (new) issue is that the virtual
&gt;&gt; folder is not selected in the drop down list when opening it.
&gt;
&gt; Which drop down menu?  The one in IMP&#039;s menubar?  Works fine for me.

Yes.

&gt; Did you rebuild the folder tree manually or do a logout/login?

Didn&#039;t help.

I noticed that the mailbox id seems to be double encoded in the URL, maybe this is related?
http://xxx/horde/imp/mailbox.php?mailbox=impsearch%2500vinbox

This is with Chrome.</description> 
   <pubDate>Tue, 22 Mar 2011 18:27:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62540</link> 
  </item> 
   
  <item> 
   <title>&gt; I noticed that the mailbox id seems to be double encoded i</title> 
   <description>&gt; I noticed that the mailbox id seems to be double encoded in the URL, 
&gt; maybe this is related?
&gt; http://xxx/horde/imp/mailbox.php?mailbox=impsearch%2500vinbox

That is expected.  Should not be the issue.

&gt; This is with Chrome.

I just tried on Chrome 10 and could load Virtual Folders just fine.</description> 
   <pubDate>Tue, 22 Mar 2011 18:42:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62542</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; This is with Chrome.
&gt;
&gt; I just tried on Chrome 10 and </title> 
   <description>&gt;&gt; This is with Chrome.
&gt;
&gt; I just tried on Chrome 10 and could load Virtual Folders just fine.

Sorry, sounds like we misunderstood each other. I can load the folders just fine too. But the drop down list doesn&#039;t &quot;stick&quot; at the selected virtual folder.</description> 
   <pubDate>Tue, 22 Mar 2011 18:57:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62543</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #9692: Fix setting current mailbox (if a virtual folder) in drop-down folder list

 1 files changed, 3 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/19038252b938396298b60fd5169629dc826ab926</description> 
   <pubDate>Tue, 22 Mar 2011 19:34:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9692#t62545</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
