<?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>Moving folders containing umlauts may cause misencoded folder names</title> 
  <pubDate>Fri, 10 Apr 2026 01:27:06 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8286</link> 
  <atom:link rel="self" type="application/rss+xml" title="Moving folders containing umlauts may cause misencoded folder names" href="https://bugs.horde.org/ticket/8286/rss" /> 
  <description>Moving folders containing umlauts may cause misencoded folder names</description> 
 
   
   
  <item> 
   <title>When moving (&quot;renaming&quot;) a folder into a (sub-)folder where </title> 
   <description>When moving (&quot;renaming&quot;) a folder into a (sub-)folder where the target folder or one of its parents contains an umlaut it gets encoded the wrong way (the file name on the file system is already wrong).

Note that this does not happen when creating a new folder, for example.



The attached image shows initial and final folder list, steps how to reproduce and how to wrongly encoded file name looks like, which should give you a better idea of what&#039;s happening than lots of text.



This is the same behaviour as the initial report on #7417 but with a clear way to reproduce and information what goes wrong.</description> 
   <pubDate>Fri, 15 May 2009 20:23:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8286#t54200</link> 
  </item> 
   
  <item> 
   <title>&gt; This is the same behaviour as the initial report on #7417 </title> 
   <description>&gt; This is the same behaviour as the initial report on #7417 but with a 

&gt; clear way to reproduce and information what goes wrong.



Typo, correct bug # is 7414</description> 
   <pubDate>Fri, 15 May 2009 20:26:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8286#t54201</link> 
  </item> 
   
  <item> 
   <title>The culprit seems to be dimp/imp.php:253 which calls String:</title> 
   <description>The culprit seems to be dimp/imp.php:253 which calls String::convertCharset() from lib/Horde/String.php everytime a Folder is renamed:



$new = String::convertCharset($new, NLS::getCharset(), &#039;UTF7-IMAP&#039;);



RFC 2060 at 5.1.3 says:

&#039;The character &quot;&amp;&quot; (0x26) is represented by the two-octet sequence &quot;&amp;-&quot;.&#039;



So the problem appears to be that an already encoded folder gets encoded again as the escape sequence contains a character (&quot;&amp;&quot;) which itself is encoded again the next time you run the encode function on it, which explains why it turns the starting character of an encoded folder sequence (like &quot;test&amp;APY-&quot; into &quot;test&amp;-APY-&quot;) and after that happened, the folder is broken.</description> 
   <pubDate>Mon, 18 May 2009 08:08:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8286#t54222</link> 
  </item> 
   
  <item> 
   <title>Attached is a proposed patch.



The patch calls String::con</title> 
   <description>Attached is a proposed patch.



The patch calls String::convertCharset only on the new folder at the beginning, not the whole structure at the end as $new_parent enters the function already encoded.



An alternative would perhaps be to decode $old and $new_parent at the beginning and leave the String::convertCharset at its current place.

It at least fixes my problem, but I am not too deep into (d)imp to verify that it doesn&#039;t break something else, please verify and apply whatever fits best :)</description> 
   <pubDate>Mon, 18 May 2009 09:23:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8286#t54225</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/dimp/docs/CHANGES?rt=horde&amp;r1=1.69.2.74&amp;r2=1.69.2.75&amp;ty=u
http://cvs.horde.org/diff.php/dimp/imp.php?rt=horde&amp;r1=1.194.2.37&amp;r2=1.194.2.38&amp;ty=u</description> 
   <pubDate>Mon, 18 May 2009 22:48:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8286#t54232</link> 
  </item> 
   
  <item> 
   <title>&gt; Attached is a proposed patch.



This is an appropriate pa</title> 
   <description>&gt; Attached is a proposed patch.



This is an appropriate patch and has been applied to DIMP 1.1.3.  IMP 5.0 was unaffected by this bug (folder naming was rewritten during the IMAP library switchover).</description> 
   <pubDate>Mon, 18 May 2009 22:50:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8286#t54233</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Improved dis</title> 
   <description>Changes have been made in Git for this ticket:

Improved display of mailboxes with UTF7-IMAP encoded data
Bug #8286 did not affect git master, but these changes do clean up some
lingering issues with title/tooltip displays of mailboxes with
UTF7-IMAP encoded data. Also, remove some unneeded DOM ID declarations
and some unneeded mailbox name encoding.

http://git.horde.org/diff.php/imp/js/src/DimpBase.js?rt=horde-git&amp;r1=7b83a6940f023cd40760c1b9e9945b34a1ec2a6c&amp;r2=faa78c427464e73c173b49d7a05b3871b8cd5dd1
http://git.horde.org/diff.php/imp/lib/DIMP.php?rt=horde-git&amp;r1=a780c25482037056921c32e29cc93d255b6a1da2&amp;r2=faa78c427464e73c173b49d7a05b3871b8cd5dd1</description> 
   <pubDate>Wed, 13 Jan 2010 00:02:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8286#t57563</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
