<?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>Double UTF7-IMAP encoding for system folders</title> 
  <pubDate>Sat, 04 Apr 2026 10:12:55 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9503</link> 
  <atom:link rel="self" type="application/rss+xml" title="Double UTF7-IMAP encoding for system folders" href="https://bugs.horde.org/ticket/9503/rss" /> 
  <description>Double UTF7-IMAP encoding for system folders</description> 
 
   
   
  <item> 
   <title>imp-4.3.9 has the following section in config/prefs.php.dist</title> 
   <description>imp-4.3.9 has the following section in config/prefs.php.dist:

$_prefs[&#039;drafts_folder&#039;] = array(
    // The mailbox value must be encoded in the UTF7-IMAP charset (see RFC
    // 3501 [5.1.3]).
    &#039;value&#039; =&gt; String::convertCharset(_(&quot;Drafts&quot;), null, &#039;UTF7-IMAP&#039;),
    &#039;locked&#039; =&gt; false,
    &#039;shared&#039; =&gt; false,
    &#039;type&#039; =&gt; &#039;implicit&#039;);

At the same time the po/de_DE.po file translates the &quot;Drafts&quot; string to &quot;Entw&amp;APw-rfe&quot;:

#: config/prefs.php.dist:304
msgid &quot;Drafts&quot;
msgstr &quot;Entw&amp;APw-rfe&quot;

This way imp-4.3.9 creates a draft folder named &quot;Entw&amp;APw-rfe&quot; (UTF-8) by default. From the current code in git I assume the encoding in prefs.php.dist is unnecessary. Suggested patch attached.

Original report: https://issues.kolab.org/issue4690 [kolab/issue4690 (Umlaut problems in system folders)]</description> 
   <pubDate>Tue, 11 Jan 2011 16:52:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9503#t61359</link> 
  </item> 
   
  <item> 
   <title>That translation looks incorrect.  The translation should be</title> 
   <description>That translation looks incorrect.  The translation should be for the word &quot;Drafts&quot;.  IMAP encoding is done on the translated word.  &quot;Drafts&quot; should not be IMAP-encoded in the translation.</description> 
   <pubDate>Tue, 11 Jan 2011 17:07:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9503#t61361</link> 
  </item> 
   
  <item> 
   <title>Ah, that is of course the other alternative.

Given that o</title> 
   <description>Ah, that is of course the other alternative.

Given that our prefs.php.dist in git does suggest to use the UTF7-IMAP conversion only in case the folder name contains non-ascii characters I assumed the UTF7-IMAP conversion in CVS was unnecessary. In git we also have a similar translation in imp/locale/de/LC_MESSAGES/imp.po:

#: lib/IMP.php:473
msgid &quot;Drafts&quot;
msgstr &quot;Entw&amp;APw-rfe&quot;

But looking at the code there it seems as this just relates to the display of the folder names.

The correct translation for &quot;Drafts&quot; in German is &quot;Entwürfe&quot; and I assume that is all that needs fixing then. Jan, do you agree?


</description> 
   <pubDate>Tue, 11 Jan 2011 19:38:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9503#t61362</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Fix Drafts translation (Bug #9503).

http://git.horde.org/horde-git/-/commit/3a1b96d373c7da9932d3fc8ef6bccfcd31c56a02</description> 
   <pubDate>Tue, 11 Jan 2011 20:23:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9503#t61364</link> 
  </item> 
   
  <item> 
   <title>The UTF-7 in the translation was from before we added the co</title> 
   <description>The UTF-7 in the translation was from before we added the convertCharset() call to prefs.php. But it looks like I was the only translator that took care of using the correct charset in that context, that&#039;s why the conversion was added.
Anyway, fixed in CVS and Git where it ended up with an automatic merge.</description> 
   <pubDate>Tue, 11 Jan 2011 20:30:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9503#t61365</link> 
  </item> 
   
  <item> 
   <title>I applied the patch from CVS to imp-4.3.9 but it does not su</title> 
   <description>I applied the patch from CVS to imp-4.3.9 but it does not successfully solve the problem.

The String &quot;Entwürfe&quot; is now correctly returned from the translation.

The call

String::convertCharset(_(&quot;Drafts&quot;), null, &#039;UTF7-IMAP&#039;)

in imp/config/prefs.php however converts that to &quot;Entw&amp;AMMAvA-rfe&quot;.

An explicit

String::convertCharset(_(&quot;Drafts&quot;), &#039;UTF8&#039;, &#039;UTF7-IMAP&#039;)

results in the correct value &quot;Entw&amp;APw-rfe&quot;.

The origin of that problem seems to be that the $from = null setting for String::convertCharset leads to mb_convert_encoding() assuming the origin charset to be equivalent to mb_internal_encoding(). This is &quot;ISO-8859-1&quot; however while the original &quot;Entwürfe&quot; string was provided in &quot;UTF8&quot;.

Now I wonder if that is a local problem of the Kolab installation or whether this needs fixing in the Horde code. Thanks!

</description> 
   <pubDate>Wed, 19 Jan 2011 10:57:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9503#t61479</link> 
  </item> 
   
  <item> 
   <title>The first charset parameter is not supposed to be empty. Try</title> 
   <description>The first charset parameter is not supposed to be empty. Try passing NLS::getCharset() instead.</description> 
   <pubDate>Wed, 19 Jan 2011 12:20:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9503#t61481</link> 
  </item> 
   
  <item> 
   <title>Using

$_prefs[&#039;drafts_folder&#039;] = array(
    // The mailb</title> 
   <description>Using

$_prefs[&#039;drafts_folder&#039;] = array(
    // The mailbox value must be encoded in the UTF7-IMAP charset (see RFC
    // 3501 [5.1.3]).
    &#039;value&#039; =&gt; String::convertCharset(_(&quot;Drafts&quot;), NLS::getCharset(), &#039;UTF7-IMAP&#039;),
    &#039;locked&#039; =&gt; false,
    &#039;shared&#039; =&gt; false,
    &#039;type&#039; =&gt; &#039;implicit&#039;);

works fine as NLS::getCharset().

I admit I don&#039;t know if our translation engine always translates to NLS::getCharset(). If it does than that sounds like the correct solution.</description> 
   <pubDate>Wed, 19 Jan 2011 13:04:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9503#t61482</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

Pass correct</title> 
   <description>Changes have been made in CVS for this ticket:

Pass correct charset to NLS::convertCharset() (Bug #9503).
http://cvs.horde.org/diff.php/imp/config/prefs.php.dist?rt=horde&amp;r1=1.216.4.38&amp;r2=1.216.4.39&amp;ty=u</description> 
   <pubDate>Wed, 19 Jan 2011 13:13:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9503#t61483</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
