<?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>Displaying quota is broken in basic-mode if the mailbox name has special characters</title> 
  <pubDate>Fri, 10 Apr 2026 16:48:42 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12059</link> 
  <atom:link rel="self" type="application/rss+xml" title="Displaying quota is broken in basic-mode if the mailbox name has special characters" href="https://bugs.horde.org/ticket/12059/rss" /> 
  <description>Displaying quota is broken in basic-mode if the mailbox name has special characters</description> 
 
   
   
  <item> 
   <title>If a mailbox  has special characters ( like äö ) in it&#039;s n</title> 
   <description>If a mailbox  has special characters ( like äö ) in it&#039;s name then displaying quota information is broken in basic-mode. It seems that the mailbox name isn&#039;t encoded to utf7imap and this causes the following errors in server logs when accessing the mailbox.

HORDE: [imp] IMAP error reported by server. Mailbox does not exist [pid 2227 on line 390 of &quot;horde/imp/lib/Imap.php&quot;]
HORDE: [imp] Unable to retrieve quota [pid 2227 on line 50 of &quot;horde/imp/lib/Quota/Imap.php&quot;]

</description> 
   <pubDate>Tue, 19 Feb 2013 12:59:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12059#t76815</link> 
  </item> 
   
  <item> 
   <title>&gt; If a mailbox  has special characters ( like äö ) in it&#039;s</title> 
   <description>&gt; If a mailbox  has special characters ( like äö ) in it&#039;s name then 
&gt; displaying quota information is broken in basic-mode. It seems that 
&gt; the mailbox name isn&#039;t encoded to utf7imap and this causes the 
&gt; following errors in server logs when accessing the mailbox.

Your fix isn&#039;t right, because Horde_Imap_Client_Base#getQuotaRoot() requires the following for the mailbox parameter:

     * @param mixed $mailbox  A mailbox. Either a Horde_Imap_Client_Mailbox
     *                        object or a string (UTF-8).

You can&#039;t pass in a UTF7-IMAP string.

Tracing the code, not sure why this is broken for you.  The value passed into IMP_Quota is either a UTF-8 string (&#039;INBOX&#039;) or an IMP_Mailbox object with the mailbox internally stored in UTF-8.  The call to getQuotaRoot() converts this data to a Horde_Imap_Client_Mailbox object, which is UTF-8, in IMP_Imap.</description> 
   <pubDate>Wed, 20 Feb 2013 01:53:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12059#t76829</link> 
  </item> 
   
  <item> 
   <title>Ping?  If no response, I&#039;m going to close because this sound</title> 
   <description>Ping?  If no response, I&#039;m going to close because this sounds like a local issue and there has been no way to reproduce this (as explained in this ticket, there should be absolutely no way your patch would work on a correctly configured system).</description> 
   <pubDate>Sun, 03 Mar 2013 03:25:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12059#t76991</link> 
  </item> 
   
  <item> 
   <title>&gt; Ping?  If no response, I&#039;m going to close because this sou</title> 
   <description>&gt; Ping?  If no response, I&#039;m going to close because this sounds like a 
&gt; local issue and there has been no way to reproduce this (as explained 
&gt; in this ticket, there should be absolutely no way your patch would 
&gt; work on a correctly configured system).

Yep, go ahead and close the ticket if you cannot reproduce it. I&#039;m able to reproduce this on all my test and production servers but that probably just indicates that my setup is consistently wrong is some way. If I  find out the cause I&#039;ll post it here for further reference.</description> 
   <pubDate>Mon, 04 Mar 2013 08:52:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12059#t77013</link> 
  </item> 
   
  <item> 
   <title>I can confirm this happening too in the basic interface. I a</title> 
   <description>I can confirm this happening too in the basic interface. I added a 

    Horde::debug($params);

line just before line 384 in horde/imp/lib/Imap.php.

In basic mode, you&#039;ll see the following being logged in the folders &#039;Inbox&#039; and &#039;Touché&#039; respectively:

2013-03-04T21:11:05+01:00 DEBUG: Variable information:
array(1) {
  [0]=&gt;
  object(Horde_Imap_Client_Mailbox)#408 (2) {
    [&quot;_utf7imap&quot;:protected]=&gt;
    NULL
    [&quot;_utf8&quot;:protected]=&gt;
    string(5) &quot;INBOX&quot;
  }
}

Backtrace:
 1. Horde_Injector-&gt;getInstance() /srv/www/htdocs/horde/imp/mailbox.php:375
 2. Horde_Injector-&gt;createInstance() /usr/share/php5/PEAR/Horde/Injector.php:247
 3. Horde_Injector_Binder_AnnotatedSetters-&gt;create() /usr/share/php5/PEAR/Horde/Injector.php:213
 4. Horde_Injector_Binder_Implementation-&gt;create() /usr/share/php5/PEAR/Horde/Injector/Binder/AnnotatedSetters.php:69
 5. Horde_Injector_Binder_Implementation-&gt;_getInstance() /usr/share/php5/PEAR/Horde/Injector/Binder/Implementation.php:62
 6. ReflectionClass-&gt;newInstanceArgs() /usr/share/php5/PEAR/Horde/Injector/Binder/Implementation.php:82
 7. IMP_View_Subinfo-&gt;__construct()
 8. IMP_Ui_Quota-&gt;quota() /srv/www/htdocs/horde/imp/lib/View/Subinfo.php:36
 9. IMP_Quota_Imap-&gt;getQuota() /srv/www/htdocs/horde/imp/lib/Ui/Quota.php:32
10. IMP_Imap-&gt;getQuotaRoot() /srv/www/htdocs/horde/imp/lib/Quota/Imap.php:48
11. IMP_Imap-&gt;__call() /srv/www/htdocs/horde/imp/lib/Quota/Imap.php:48
12. Horde::debug() /srv/www/htdocs/horde/imp/lib/Imap.php:387

2013-03-04T21:11:19+01:00 DEBUG: Variable information:
array(1) {
  [0]=&gt;
  object(Horde_Imap_Client_Mailbox)#400 (2) {
    [&quot;_utf7imap&quot;:protected]=&gt;
    NULL
    [&quot;_utf8&quot;:protected]=&gt;
    string(7) &quot;Touché&quot;
  }
}

Backtrace:
 1. Horde_Injector-&gt;getInstance() /srv/www/htdocs/horde/imp/mailbox.php:375
 2. Horde_Injector-&gt;createInstance() /usr/share/php5/PEAR/Horde/Injector.php:247
 3. Horde_Injector_Binder_AnnotatedSetters-&gt;create() /usr/share/php5/PEAR/Horde/Injector.php:213
 4. Horde_Injector_Binder_Implementation-&gt;create() /usr/share/php5/PEAR/Horde/Injector/Binder/AnnotatedSetters.php:69
 5. Horde_Injector_Binder_Implementation-&gt;_getInstance() /usr/share/php5/PEAR/Horde/Injector/Binder/Implementation.php:62
 6. ReflectionClass-&gt;newInstanceArgs() /usr/share/php5/PEAR/Horde/Injector/Binder/Implementation.php:82
 7. IMP_View_Subinfo-&gt;__construct()
 8. IMP_Ui_Quota-&gt;quota() /srv/www/htdocs/horde/imp/lib/View/Subinfo.php:36
 9. IMP_Quota_Imap-&gt;getQuota() /srv/www/htdocs/horde/imp/lib/Ui/Quota.php:32
10. IMP_Imap-&gt;getQuotaRoot() /srv/www/htdocs/horde/imp/lib/Quota/Imap.php:48
11. IMP_Imap-&gt;__call() /srv/www/htdocs/horde/imp/lib/Quota/Imap.php:48
12. Horde::debug() /srv/www/htdocs/horde/imp/lib/Imap.php:387

I suspect that the element _utf7imap being NULL, might be causing problems since my IMAP server (Dovecot) doesn&#039;t accept folders in UTF8. This doesn&#039;t cause a problem in dynamic mode, since the quota are calculated not per folder, but always based on the Inbox (it is only logged once when switching between folders without doing modifications):

2013-03-04T21:08:04+01:00 DEBUG: Variable information:
array(1) {
  [0]=&gt;
  object(Horde_Imap_Client_Mailbox)#302 (2) {
    [&quot;_utf7imap&quot;:protected]=&gt;
    NULL
    [&quot;_utf8&quot;:protected]=&gt;
    string(5) &quot;INBOX&quot;
  }
}

Backtrace:
1. IMP_Ajax_Application-&gt;send() /srv/www/htdocs/horde/services/ajax.php:65
2. IMP_Ajax_Application-&gt;getTasks() /srv/www/htdocs/horde/imp/lib/Ajax/Application.php:120
3. IMP_Ajax_Queue-&gt;add() /srv/www/htdocs/horde/imp/lib/Ajax/Application.php:131
4. IMP_Ui_Quota-&gt;quota() /srv/www/htdocs/horde/imp/lib/Ajax/Queue.php:166
5. IMP_Quota_Imap-&gt;getQuota() /srv/www/htdocs/horde/imp/lib/Ui/Quota.php:32
6. IMP_Imap-&gt;getQuotaRoot() /srv/www/htdocs/horde/imp/lib/Quota/Imap.php:48
7. IMP_Imap-&gt;__call() /srv/www/htdocs/horde/imp/lib/Quota/Imap.php:48
8. Horde::debug() /srv/www/htdocs/horde/imp/lib/Imap.php:387</description> 
   <pubDate>Mon, 04 Mar 2013 20:29:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12059#t77039</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit ef68a7b575dd</title> 
   <description>Changes have been made in Git (master):

commit ef68a7b575ddb5af4374eaaa229ff00807000b2d
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Mon Mar 4 21:48:35 2013 -0700

    [mms] Fix SETQUOTA, GETQUOTA, and GETQUOTAROOT commands on mailboxes that contain non-7bit characters (Bug #12059).

 .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |    6 +++---
 framework/Imap_Client/package.xml                  |    2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/ef68a7b575ddb5af4374eaaa229ff00807000b2d</description> 
   <pubDate>Tue, 05 Mar 2013 04:49:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12059#t77046</link> 
  </item> 
   
  <item> 
   <title>Nevermind.  This was a problem because the QUOTA RFC (2087) </title> 
   <description>Nevermind.  This was a problem because the QUOTA RFC (2087) predates RFC 3501 and lists the input as an astring - later RFC revisions clarify that mailbox input is actually &#039;mailbox&#039; in ABNF, which means an astring that has been converted to UTF7-IMAP.  So we were using the wrong IMAP data type in the command.

Fixed in Horde_Imap_Client 2.7.1.</description> 
   <pubDate>Tue, 05 Mar 2013 04:49:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12059#t77047</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
