<?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>Cannot create folder name with ampersand</title> 
  <pubDate>Fri, 10 Apr 2026 07:03:40 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10093</link> 
  <atom:link rel="self" type="application/rss+xml" title="Cannot create folder name with ampersand" href="https://bugs.horde.org/ticket/10093/rss" /> 
  <description>Cannot create folder name with ampersand</description> 
 
   
   
  <item> 
   <title>Trying to create a folder through DIMP like &quot;foo &amp; bar&quot; give</title> 
   <description>Trying to create a folder through DIMP like &quot;foo &amp; bar&quot; gives me the error message &quot;the folder &quot;foo  bar&quot; cannot be created&quot;. So these are actually two bugs. At one place the folder name isn&#039;t correctly encoded to be a valid IMAP mailbox name, and the ampersand gets lost when reporting back the error.</description> 
   <pubDate>Tue, 17 May 2011 12:17:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64730</link> 
  </item> 
   
  <item> 
   <title>The same happens when renaming a folder.</title> 
   <description>The same happens when renaming a folder.</description> 
   <pubDate>Tue, 17 May 2011 12:18:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64731</link> 
  </item> 
   
  <item> 
   <title>&gt; Trying to create a folder through DIMP like &quot;foo &amp; bar&quot; gi</title> 
   <description>&gt; Trying to create a folder through DIMP like &quot;foo &amp; bar&quot; gives me the 
&gt; error message &quot;the folder &quot;foo  bar&quot; cannot be created&quot;. So these are 
&gt; actually two bugs. At one place the folder name isn&#039;t correctly 
&gt; encoded to be a valid IMAP mailbox name, and the ampersand gets lost 
&gt; when reporting back the error.

We shouldn&#039;t allow creation of mailboxes with ampersands at all.  From RFC 3501:

   5)    Two characters, &quot;#&quot; and &quot;&amp;&quot;, have meanings by convention, and
         should be avoided except when used in that convention.

The problem is that ampersands are used to encode UTF7-IMAP.  So you wouldn&#039;t see them in an error message because we are trying to convert them from UTF7-IMAP -&gt; UTF-8.

But we shouldn&#039;t even get to this point - we should simply reject these mailbox names.</description> 
   <pubDate>Tue, 17 May 2011 16:11:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64734</link> 
  </item> 
   
  <item> 
   <title>&gt; The problem is that ampersands are used to encode UTF7-IMA</title> 
   <description>&gt; The problem is that ampersands are used to encode UTF7-IMAP.  So you 
&gt; wouldn&#039;t see them in an error message because we are trying to 
&gt; convert them from UTF7-IMAP -&gt; UTF-8.

Makes sense.

&gt; But we shouldn&#039;t even get to this point - we should simply reject 
&gt; these mailbox names.

Why? They are perfectly valid. We only have to encode ampersands properly to &quot;&amp;-&quot;, which should already happen by converting UTF-8 -&gt; UTF7-IMAP.</description> 
   <pubDate>Tue, 17 May 2011 16:18:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64735</link> 
  </item> 
   
  <item> 
   <title>Also, mailboxes should not have &#039;*&#039; or &#039;%&#039;.  Additionally, i</title> 
   <description>Also, mailboxes should not have &#039;*&#039; or &#039;%&#039;.  Additionally, it is recommended that the delimiter character is not allowed, but since we allow power users to create a container + sub-mailbox in one command, we don&#039;t need to strip delimiters out (or, instead, make this an optional check).

I was almost positive that we had a check for this at some point (I believe it was a SAPO request), but for some reason we took it out.  IIRC, it would have been in IMP_Imap_Tree::createMailboxName().  It most likely could have been removed simply because we did not have the infrastructure in place to handle an error in mailbox name creation.  Or because we couldn&#039;t come up with an adequate way to tell the users what mailbox names are acceptable.</description> 
   <pubDate>Tue, 17 May 2011 16:20:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64736</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #10093: Fix UTF-8 -&gt; UTF7-IMAP encoding of ampersands

 3 files changed, 32 insertions(+), 4 deletions(-)
http://git.horde.org/horde-git/-/commit/47607d4a9d59d63c4c4037fdd6f5d0e328dd7370</description> 
   <pubDate>Tue, 17 May 2011 16:51:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64737</link> 
  </item> 
   
  <item> 
   <title>&gt; Why? They are perfectly valid. We only have to encode ampe</title> 
   <description>&gt; Why? They are perfectly valid. We only have to encode ampersands 
&gt; properly to &quot;&amp;-&quot;, which should already happen by converting UTF-8 -&gt; 
&gt; UTF7-IMAP.

Turns out that this was an issue with the UTF-8 -&gt; UTF7-IMAP conversion code in Horde_Imap_Client.

But we still do need to prevent creation of mailboxes with &#039;*&#039; and &#039;%&#039;.</description> 
   <pubDate>Tue, 17 May 2011 16:52:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64738</link> 
  </item> 
   
  <item> 
   <title>&gt; Changes have been made in Git for this ticket:
&gt;
&gt; Bug #</title> 
   <description>&gt; Changes have been made in Git for this ticket:
&gt;
&gt; Bug #10093: Fix UTF-8 -&gt; UTF7-IMAP encoding of ampersands
&gt;
&gt;  3 files changed, 32 insertions(+), 4 deletions(-)
&gt; http://git.horde.org/horde-git/-/commit/47607d4a9d59d63c4c4037fdd6f5d0e328dd7370

This test whether a string is already encoded doesn&#039;t work. Ampersands are used for other escapings than escaping the ampersand itself too. I can&#039;t access the folder &quot;Quarantäne&quot; anymore, for example, because it translates to &quot;Quarant&amp;AOQ-ne&quot;.</description> 
   <pubDate>Tue, 17 May 2011 22:16:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64744</link> 
  </item> 
   
  <item> 
   <title>&gt; This test whether a string is already encoded doesn&#039;t work</title> 
   <description>&gt; This test whether a string is already encoded doesn&#039;t work. 
&gt; Ampersands are used for other escapings than escaping the ampersand 
&gt; itself too. I can&#039;t access the folder &quot;Quarantäne&quot; anymore, for 
&gt; example, because it translates to &quot;Quarant&amp;AOQ-ne&quot;.

Then all of Horde_Imap_Client is broken.  Because we allow UTF-8 input for all mailbox parameters, which are all internally converted to UTF7-IMAP, so all of Horde_Imap_Client is unusable with mailboxes with ampersands according to its API.

The best solution is to ALWAYS require UTF-8 mailbox names.  But this is going to require a complete rewrite of much of IMP, since we mostly use UTF7-IMAP to internally represent mailbox names (although we interchangably use the two in several locations).

Which means that IMP 5.1 needs to be released (and soon).  This is a major issue to me since it completely prevents entire mailboxes from being accessed.

This is EXACTLY why RFC 3501 tells you not to use ampersands in mailbox names.  Just because it is technically feasible does not mean that we should allow it.</description> 
   <pubDate>Tue, 17 May 2011 23:07:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64745</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Fix detecting of already encoded UTF7-IMAP strings (Bug #10093).

 2 files changed, 7 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/2f85ba2a089919c6253fa8f4cfe362b1e5844531</description> 
   <pubDate>Wed, 18 May 2011 07:58:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64765</link> 
  </item> 
   
  <item> 
   <title>No need to go that far, though I agree that we should consis</title> 
   <description>No need to go that far, though I agree that we should consistently use either of the encodings throughout the internal APIs.</description> 
   <pubDate>Wed, 18 May 2011 08:00:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64766</link> 
  </item> 
   
  <item> 
   <title>&gt; Changes have been made in Git for this ticket:
&gt;
&gt; Fix d</title> 
   <description>&gt; Changes have been made in Git for this ticket:
&gt;
&gt; Fix detecting of already encoded UTF7-IMAP strings (Bug #10093).
&gt;
&gt;  2 files changed, 7 insertions(+), 2 deletions(-)
&gt; http://git.horde.org/horde-git/-/commit/2f85ba2a089919c6253fa8f4cfe362b1e5844531

This isn&#039;t a valid fix.  It breaks with this mailbox: &quot;Foo&amp;Bar-2011&quot;.</description> 
   <pubDate>Wed, 18 May 2011 08:00:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64767</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Add failing </title> 
   <description>Changes have been made in Git for this ticket:

Add failing test case for bug #10093.

 1 files changed, 19 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/802c396ddd58c9a3677f6f7b5e42faac4d259738</description> 
   <pubDate>Wed, 18 May 2011 12:26:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64781</link> 
  </item> 
   
  <item> 
   <title>&gt; This isn&#039;t a valid fix.  It breaks with this mailbox: &quot;Foo</title> 
   <description>&gt; This isn&#039;t a valid fix.  It breaks with this mailbox: &quot;Foo&amp;Bar-2011&quot;.

True. :( Well, as matter of fact, this combination will happen less often than an ampersand without a dash in the same mailbox name. So I guess that&#039;s as best as we can get for now.</description> 
   <pubDate>Wed, 18 May 2011 12:48:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64782</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #10093: More thorough checking for UTF7-IMAP encoding
At a minimum, it catches the previous failing case

 2 files changed, 35 insertions(+), 21 deletions(-)
http://git.horde.org/horde-git/-/commit/1f21ab7b25138d1327dfc14a27f2c2bc688f9722</description> 
   <pubDate>Mon, 23 May 2011 19:53:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64988</link> 
  </item> 
   
  <item> 
   <title>&gt; Bug #10093: More thorough checking for UTF7-IMAP encoding</title> 
   <description>&gt; Bug #10093: More thorough checking for UTF7-IMAP encoding
&gt; At a minimum, it catches the previous failing case

As a theoretical matter, there still remains some mailbox names that won&#039;t be handled correctly.  But as a practical matter, these mailboxes would require a string of nonsensical letters, bounded by &#039;&amp;&#039; and &#039;-&#039;, so the odds of running into this are exceedingly slim.  Still, IMP should be fixed to handle everything in UTF-8 and then have the Imap Client do all the necessary UTF7-IMAP abstraction.</description> 
   <pubDate>Tue, 24 May 2011 03:31:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t64999</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #10093: Revert previous attempt to catch UTF7-IMAP mailbox names

 2 files changed, 17 insertions(+), 21 deletions(-)
http://git.horde.org/horde-git/-/commit/843142515711988f4424bdf40baf24209b27d3ae</description> 
   <pubDate>Thu, 26 May 2011 20:51:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t65136</link> 
  </item> 
   
  <item> 
   <title>Reboosting priority, since the workaround doesn&#039;t work prope</title> 
   <description>Reboosting priority, since the workaround doesn&#039;t work properly on all servers.

This issue can only be resolved by fixing in BOTH imp and Horde_Imap_Client.  So IMP 5.1 MUST require Horde_Imap_Client v1.1.0 or higher.</description> 
   <pubDate>Thu, 26 May 2011 20:54:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t65138</link> 
  </item> 
   
  <item> 
   <title>Not possible, which means it has to wait for IMP 6.</title> 
   <description>Not possible, which means it has to wait for IMP 6.</description> 
   <pubDate>Fri, 27 May 2011 09:46:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t65170</link> 
  </item> 
   
  <item> 
   <title>H&gt; Not possible, which means it has to wait for IMP 6.

No</title> 
   <description>H&gt; Not possible, which means it has to wait for IMP 6.

No. This is **completely** unacceptable.  This is EXACTLY the concerns I raised when I said our release process was moving forward too quickly. And I was told that backward compatibility would not be an issue for minor releases that fix major bugs.

This cannot happen.  This makes the entire packaging system worthless.  I will not go through another round of releases where we can&#039;t move forward because of BC.  That is ridiculous.

If that is not the case, then there will be no IMP 5.1.  I will begin work on IMP 6 immediately with the expectation that it will be released next month.</description> 
   <pubDate>Fri, 27 May 2011 14:48:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t65179</link> 
  </item> 
   
  <item> 
   <title>1. Why can&#039;t IMP 5.1 require a newer version of a specific p</title> 
   <description>1. Why can&#039;t IMP 5.1 require a newer version of a specific package? Isn&#039;t that part of the intent of the separate framework packages?

2. Is the change to Horde_Imap_Client one that will break IMP 5.0, or is it just that this bug won&#039;t be fixed without it?

3. No matter how long we took on the release, we would have found something like this.</description> 
   <pubDate>Sun, 29 May 2011 02:59:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t65182</link> 
  </item> 
   
  <item> 
   <title>&gt; 1. Why can&#039;t IMP 5.1 require a newer version of a specific</title> 
   <description>&gt; 1. Why can&#039;t IMP 5.1 require a newer version of a specific package? 
&gt; Isn&#039;t that part of the intent of the separate framework packages?

This was my understanding/belief also.  A minor version bump is intended to indicate that the basic framework is the same (i.e. no major data/configuration changes), but that there may be some substantial changes to the underlying system to fix limitations in the previous version.

&gt; 2. Is the change to Horde_Imap_Client one that will break IMP 5.0, or 
&gt; is it just that this bug won&#039;t be fixed without it?

Right now, Horde_Imap_Client accepts either UTF-8 or UTF7-IMAP strings for all mailbox parameters.  This needs to be changed to Horde_Imap_Client accepting UTF-8 strings only (since it can not be 100% reliably auto-detected).

I am positive that IMP passes both types of strings to H_I_C methods.  So this needs to be changed to UTF-8 only.  But this change in IMP is worthless if there is not a corresponding change in H_I_C - since we need to be calling a version of H_I_C that does not do any auto-conversion.

There are other things that need to be fixed in H_I_C (allowing multiple mailboxes to specified to search(); returning the list of UIDs that were altered in store() instead of a boolean) that should be done sooner rather than later.

&gt; 3. No matter how long we took on the release, we would have found 
&gt; something like this.

That is probably true - this is a bit broad of a statement on my part.  But locking ourselves into an API, without the benefit of broad-based, thorough testing, is a terrible thing.  This was the #1 failure of Horde 3 - we should not be supporting broken APIs for (potentially) years simply because that happen to be the state of things the second version x.0 came out.</description> 
   <pubDate>Tue, 07 Jun 2011 06:11:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t65441</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; 1. Why can&#039;t IMP 5.1 require a newer version of a specifi</title> 
   <description>&gt;&gt; 1. Why can&#039;t IMP 5.1 require a newer version of a specific package?
&gt;&gt; Isn&#039;t that part of the intent of the separate framework packages?
&gt;
&gt; This was my understanding/belief also.  A minor version bump is 
&gt; intended to indicate that the basic framework is the same (i.e. no 
&gt; major data/configuration changes), but that there may be some 
&gt; substantial changes to the underlying system to fix limitations in 
&gt; the previous version.

No, it&#039;s not that vague (&quot;major&quot; or &quot;substantial&quot; changes). The definition is clear. A minor version bump means that functionality has been added or an API has been *extended*. *Changing* the API requires a major version bump.

I could see us allowing to require a certain version of a dependency though. We already allow this for packages that haven&#039;t been released yet. But the important question is:

&gt;&gt; 2. Is the change to Horde_Imap_Client one that will break IMP 5.0, or
&gt;&gt; is it just that this bug won&#039;t be fixed without it?
&gt;
&gt; Right now, Horde_Imap_Client accepts either UTF-8 or UTF7-IMAP 
&gt; strings for all mailbox parameters.  This needs to be changed to 
&gt; Horde_Imap_Client accepting UTF-8 strings only (since it can not be 
&gt; 100% reliably auto-detected).
&gt;
&gt; I am positive that IMP passes both types of strings to H_I_C methods. 
&gt;  So this needs to be changed to UTF-8 only.  But this change in IMP 
&gt; is worthless if there is not a corresponding change in H_I_C - since 
&gt; we need to be calling a version of H_I_C that does not do any 
&gt; auto-conversion.

So this would clearly be a BC break. And it won&#039;t only affect IMP, but also any 3rd party developers that use this library and depend on auto-conversion.

&gt; There are other things that need to be fixed in H_I_C (allowing 
&gt; multiple mailboxes to specified to search(); returning the list of 
&gt; UIDs that were altered in store() instead of a boolean) that should 
&gt; be done sooner rather than later.
&gt;
&gt;&gt; 3. No matter how long we took on the release, we would have found
&gt;&gt; something like this.
&gt;
&gt; That is probably true - this is a bit broad of a statement on my 
&gt; part.  But locking ourselves into an API, without the benefit of 
&gt; broad-based, thorough testing, is a terrible thing.  This was the #1 
&gt; failure of Horde 3 - we should not be supporting broken APIs for 
&gt; (potentially) years simply because that happen to be the state of 
&gt; things the second version x.0 came out.

We don&#039;t support them for potentially years, unless there isn&#039;t anything in the APIs that require BC breaking changes. If a BC break is necessary, we have to decide whether we want to have this into the next release (which would be a new major version then). Releases are done every half a year.

There is no easy solution for a buggy API design. Like Chuck said, this can always, and it&#039;s something you have to live with if you want to provide a stable and reliable release policy. And in this specific case, it can really only be fixed by changing the API. But then again, it&#039;s only still broken for very fringe use cases, and I doubt we will see a single bug report until the next major release with the improved auto-detection in place.</description> 
   <pubDate>Tue, 28 Jun 2011 12:34:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t65922</link> 
  </item> 
   
  <item> 
   <title>I&#039;m sorry, but ticket 10102 was closed as a doublet to this </title> 
   <description>I&#039;m sorry, but ticket 10102 was closed as a doublet to this ticket. This (still) means that I can&#039;t access many of my folders at all (if they contain a Danish character like æ, ø or å) - I simply get: &quot;Unexpectedly disconnected from the mail server.&quot; So I don&#039;t agree that it&#039;s only &quot;broken for very fringe use cases&quot; - at least if it&#039;s the same problem as in ticket 10102. It&#039;s actually quite broken. IMP 5.0.7, Horde 4.0.6.</description> 
   <pubDate>Tue, 05 Jul 2011 08:53:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t66157</link> 
  </item> 
   
  <item> 
   <title>&gt; I&#039;m sorry, but ticket 10102 was closed as a doublet to thi</title> 
   <description>&gt; I&#039;m sorry, but ticket 10102 was closed as a doublet to this ticket. 
&gt; This (still) means that I can&#039;t access many of my folders at all (if 
&gt; they contain a Danish character like æ, ø or å) - I simply get: 
&gt; &quot;Unexpectedly disconnected from the mail server.&quot; So I don&#039;t agree 
&gt; that it&#039;s only &quot;broken for very fringe use cases&quot; - at least if it&#039;s 
&gt; the same problem as in ticket 10102. It&#039;s actually quite broken. IMP 
&gt; 5.0.7, Horde 4.0.6.

No - this doesn&#039;t sound right at all.  There should be extremely limited cases where this won&#039;t work - 99.9% of non ASCII characters should display correctly (I have a bunch of these mailboxes that display just fine).

Are you sure you have updated Horde_Imap_Client?  Alternatively, what is an example of a mailbox name (the actual name on the IMAP server, not the translated name) that you can not view?</description> 
   <pubDate>Tue, 05 Jul 2011 18:07:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t66176</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; I&#039;m sorry, but ticket 10102 was closed as a doublet to th</title> 
   <description>&gt;&gt; I&#039;m sorry, but ticket 10102 was closed as a doublet to this ticket.
&gt;&gt; This (still) means that I can&#039;t access many of my folders at all (if
&gt;&gt; they contain a Danish character like æ, ø or å) - I simply get:
&gt;&gt; &quot;Unexpectedly disconnected from the mail server.&quot; So I don&#039;t agree
&gt;&gt; that it&#039;s only &quot;broken for very fringe use cases&quot; - at least if it&#039;s
&gt;&gt; the same problem as in ticket 10102. It&#039;s actually quite broken. IMP
&gt;&gt; 5.0.7, Horde 4.0.6.
&gt;
&gt; No - this doesn&#039;t sound right at all.  There should be extremely 
&gt; limited cases where this won&#039;t work - 99.9% of non ASCII characters 
&gt; should display correctly (I have a bunch of these mailboxes that 
&gt; display just fine).
&gt;
&gt; Are you sure you have updated Horde_Imap_Client?

I&#039;m running pear.horde.org/Horde_Imap_Client-1.0.9 - installed with Horde 4.0.7 and IMP 5.0.8 two days ago.

&gt; Alternatively, what is an example of a mailbox name (the actual name
&gt; on the IMAP server, not the translated name) that you can not view?

For example, I&#039;m having problems with folder name &quot;Nytår&quot; (&quot;Maildir/.Nyt\&amp;AOU-r/&quot;). 

However, another strange problem has appeared lately. When I have a mail that IMP doesn&#039;t like, it will not only refuse to show the mail. It will also give the &quot;Unexpectedly disconnected from the mail server.&quot; error when trying to access the page on which the e-mail is located. I can go to previous page and next page, but the page itself can&#039;t be viewed. This might be related to ticket 10169, which was rejected (and unresolved).

I use UTF-8 everywhere on my system, which is a pretty clean CentOS 5.5 installation. PHP (5.3.6) is compiled with:

--with-iconv
--enable-mbstring=all
--with-gettext

Other than that I use a custom built libxml2 (version 2.7.8) without any configure options set, i.e. quite straight-forward.

So I&#039;m a bit puzzled, but don&#039;t really know where to look.</description> 
   <pubDate>Thu, 07 Jul 2011 20:48:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t66220</link> 
  </item> 
   
  <item> 
   <title>&gt; For example, I&#039;m having problems with folder name &quot;Nytår&quot;</title> 
   <description>&gt; For example, I&#039;m having problems with folder name &quot;Nytår&quot; 
&gt; (&quot;Maildir/.Nyt\&amp;AOU-r/&quot;).

Works fine here.  From the IMAP debug log:

(1310495155.4528) C: 4 SELECT Testing.Nyt&amp;AOU-r
(1310495155.4914) S: * OK [CLOSED] Previous mailbox closed.
(1310495155.4915) S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
(1310495155.4916) S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
(1310495155.4917) S: * 1 EXISTS
(1310495155.4918) S: * 0 RECENT
(1310495155.4919) S: * OK [UIDVALIDITY 1255685480] UIDs valid
(1310495155.4919) S: * OK [UIDNEXT 2] Predicted next UID
(1310495155.4920) S: * OK [HIGHESTMODSEQ 2] Highest
(1310495155.4920) S: 4 OK [READ-WRITE] Select completed.

You will need to provide the IMAP debug log (see below for instructions) for when you try to access that mailbox.

&gt; However, another strange problem has appeared lately. When I have a 
&gt; mail that IMP doesn&#039;t like, it will not only refuse to show the mail. 
&gt; It will also give the &quot;Unexpectedly disconnected from the mail 
&gt; server.&quot; error when trying to access the page on which the e-mail is 
&gt; located. I can go to previous page and next page, but the page itself 
&gt; can&#039;t be viewed. This might be related to ticket 10169, which was 
&gt; rejected (and unresolved).

This is a separate issue.  Open another ticket and provide the IMAP debug log.

----

To further debug this issue, we need details of the IMP -&gt; IMAP/POP communication.

To enable debugging, see instructions contained in imp/config/backends.php (the &#039;debug&#039; config parameter).  

Debugging should not be enabled on a production server,   Attach/post only the portion of the log that directly deals with the problem reported (it may be simplest to clear the log file and then perform the event that causes the error).</description> 
   <pubDate>Tue, 12 Jul 2011 18:28:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t66281</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; For example, I&#039;m having problems with folder name &quot;Nytår</title> 
   <description>&gt;&gt; For example, I&#039;m having problems with folder name &quot;Nytår&quot;
&gt;&gt; (&quot;Maildir/.Nyt\&amp;AOU-r/&quot;).

&gt; Works fine here.  From the IMAP debug log:
&gt; (1310495155.4528) C: 4 SELECT Testing.Nyt&amp;AOU-r
&gt; (1310495155.4914) S: * OK [CLOSED] Previous mailbox closed.
&gt; (1310495155.4915) S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
&gt; (1310495155.4916) S: * OK [PERMANENTFLAGS (\Answered \Flagged 
&gt; \Deleted \Seen \Draft \*)] Flags permitted.
&gt; (1310495155.4917) S: * 1 EXISTS
&gt; (1310495155.4918) S: * 0 RECENT
&gt; (1310495155.4919) S: * OK [UIDVALIDITY 1255685480] UIDs valid
&gt; (1310495155.4919) S: * OK [UIDNEXT 2] Predicted next UID
&gt; (1310495155.4920) S: * OK [HIGHESTMODSEQ 2] Highest
&gt; (1310495155.4920) S: 4 OK [READ-WRITE] Select completed.
&gt;
&gt; You will need to provide the IMAP debug log (see below for 
&gt; instructions) for when you try to access that mailbox.

I finally have some IMAP debug information (for folder Maildir/.Vigtigt.Ordrebekr\&amp;AOY-ftelser/ (Vigtigt/Ordrebekræftelser), which has the same problem):
(1312367349,9868) S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS XMAGICTRASH] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc.  See COPYING for distribution information.
(1312367349,9874) C: 1 STARTTLS
(1312367349,9878) S: 1 OK Begin SSL/TLS negotiation now.
(1312367350,0878) C: [LOGIN Command - username: xxx]
(1312367350,3669) S: 2 OK LOGIN Ok.
(1312367350,3677) C: 3 SELECT INBOX.Vigtigt.Ordrebekr&amp;AOY-ftelser
(1312367350,3882) S: * FLAGS (NonJunk $Forwarded \Draft \Answered \Flagged \Deleted \Seen \Recent)
(1312367350,3886) S: * OK [PERMANENTFLAGS (NonJunk $Forwarded \* \Draft \Answered \Flagged \Deleted \Seen)] Limited
(1312367350,3889) S: * 428 EXISTS
(1312367350,3891) S: * 0 RECENT
(1312367350,3893) S: * OK [UIDVALIDITY 1068675967] Ok
(1312367350,3894) S: * OK [MYRIGHTS &quot;acdilrsw&quot;] ACL
(1312367350,3895) S: 3 OK [READ-WRITE] Ok
(1312367350,5602) C: 4 UID SEARCH 428
(1312367350,6022) S: * SEARCH 437
(1312367350,6028) S: 4 OK SEARCH done.
(1312367350,6061) C: 5 UID SORT (ARRIVAL) US-ASCII ALL
(1312367350,6875) S: * SORT 3 43 42 41 40 39 38 37 36 35 34 4 2 64 33 32 63 62 61 60 59 58 31 30 29 28 145 57 56 55 54 53 52 51 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 50  [etc., red.]
(1312367350,6933) S: 5 OK SORT done.
(1312367350,6957) C: 6 UID SEARCH 428
(1312367350,6967) S: * SEARCH 437
(1312367350,6970) S: 6 OK SEARCH done.
(1312367350,6981) C: 7 UID SEARCH CHARSET UTF-8 UNSEEN
(1312367350,7396) S: * SEARCH
(1312367350,7400) S: 7 OK SEARCH done.
(1312367350,7435) C: 8 UID SEARCH 428
(1312367350,7846) S: * SEARCH 437
(1312367350,7851) S: 8 OK SEARCH done.
(1312367350,7984) C: 9 UID FETCH 3,43,42,41,40,39,38,37,36,35,34,4,2,64,33,32,63,62,61,60,59,58,31,30,29 (ENVELOPE FLAGS RFC822.SIZE BODY.PEEK[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY)])
(1312367350,8455) S: * BYE [ALERT] Fatal error: Invalid argument

From the Horde log:
2011-08-03T11:15:24+02:00 DEBUG: HORDE [imp] Unexpectedly disconnected from the mail server. [pid 29118 on line 27 of &quot;/usr/local/lib/php/Horde/Core/Notification/Handler/Decorator/Hordelog.php&quot;]
2011-08-03T11:15:24+02:00 ERR: HORDE [imp] IMAP Server closed the connection: BYE [ALERT] Fatal error: Invalid argument [pid 29118 on line 340 of &quot;/var/www/secure/horde4/imp/lib/Imap.php&quot;]
2011-08-03T11:15:24+02:00 DEBUG: 1. IMP_Mailbox_List-&gt;getMailboxArray() /var/www/secure/horde4/imp/mailbox.php:259
2. IMP_Imap-&gt;fetch() /var/www/secure/horde4/imp/lib/Mailbox/List.php:170
3. IMP_Imap-&gt;__call() /var/www/secure/horde4/imp/lib/Mailbox/List.php:170
</description> 
   <pubDate>Wed, 03 Aug 2011 10:39:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t66745</link> 
  </item> 
   
  <item> 
   <title>&gt; (1312367350,3677) C: 3 SELECT INBOX.Vigtigt.Ordrebekr&amp;AOY-</title> 
   <description>&gt; (1312367350,3677) C: 3 SELECT INBOX.Vigtigt.Ordrebekr&amp;AOY-ftelser
[...]
&gt; (1312367350,3895) S: 3 OK [READ-WRITE] Ok

As expected, IMP can access this mailbox just fine.

&gt; (1312367350,7984) C: 9 UID FETCH 
&gt; 3,43,42,41,40,39,38,37,36,35,34,4,2,64,33,32,63,62,61,60,59,58,31,30,29 
&gt; (ENVELOPE FLAGS RFC822.SIZE BODY.PEEK[HEADER.FIELDS (IMPORTANCE 
&gt; LIST-POST X-PRIORITY)])
&gt; (1312367350,8455) S: * BYE [ALERT] Fatal error: Invalid argument

Your IMAP server is broken.  See (RFC 3501 [7.1.5]) (Untagged BYE response can occur in 1 of 4 instances: the only instance that fits here is &quot;2) as a panic shutdown announcement.&quot;)  That is a perfectly valid FETCH statement, so the problem is not with Horde/IMP.</description> 
   <pubDate>Wed, 03 Aug 2011 16:05:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t66754</link> 
  </item> 
   
  <item> 
   <title>Thanks for this hint. It was kind of hard for me to figure o</title> 
   <description>Thanks for this hint. It was kind of hard for me to figure out, since the problem started appearing immediately after upgrading to Horde 4.0, completely unrelated to any Courier IMAP upgrades.

The good news is that upgrading from Courier IMAP 4.9.1 to 4.9.3 solved the problem:

4.9.3

2011-05-22  Sam Varshavchik  &lt;mrsam@courier-mta.com&gt;

	* msgenvelope.c (msgappends): Fix a fatal error upon encountering
	8-bit header content. Heuristically try to interpret it as UTF-8, and
	just ignore invalid UTF-8 sequences.

4.9.2

2011-05-17  Sam Varshavchik  &lt;mrsam@courier-mta.com&gt;

	* rfc2045/rfc2045cdecode.c: Tolerate lowercase hexadecimal characters
	in quoted-printable-encoded content.

2011-05-06  Thomas Jacob &lt;jacob@internet24.de&gt;

	* unicode/unicode.c: Compilation fixes.
</description> 
   <pubDate>Wed, 03 Aug 2011 17:09:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t66762</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #10093: Added Horde_Imap_Client_Mailbox
Provides way to accurately switch between UTF7-IMAP and UTF-8 mailbox
representations.

 5 files changed, 270 insertions(+), 6 deletions(-)
http://git.horde.org/horde-git/-/commit/69d52da8792bd68a536a3fb969201e8a7dc921d0</description> 
   <pubDate>Wed, 26 Oct 2011 22:46:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t68385</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #10093: Use Horde_Imap_Client_Mailbox for mailbox parameters/return values

 10 files changed, 663 insertions(+), 424 deletions(-)
http://git.horde.org/horde-git/-/commit/20c50a0d1bb0cb15d9fd185f240f02d1b0fd4b7a</description> 
   <pubDate>Sat, 29 Oct 2011 06:57:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t68416</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #10093: Convert IMP to use new Horde_Imap_Client 1.2 features
IMP now entirely handles IMAP mailbox names internally in UTF-8.

This does, however, mean several preferences and configuration
parameters may need to be changed.  Current preference values will be
automatically updated.  This is a necessary evil, or else there will be
NO way to accurately determine the charset in future versions.  (Most
users should be using default values, so this will not affect them.
Addtionally, from feeback, it seems likely that very few users are
currently using the fixed_folders configuration option).

 23 files changed, 253 insertions(+), 117 deletions(-)
http://git.horde.org/horde-git/-/commit/fd89d722f80b5b9715033d21e5ecbb06605b7ab0</description> 
   <pubDate>Sat, 29 Oct 2011 06:57:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t68417</link> 
  </item> 
   
  <item> 
   <title>Fixed for 5.0.15.</title> 
   <description>Fixed for 5.0.15.</description> 
   <pubDate>Sat, 29 Oct 2011 06:59:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t68419</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Revert &quot;Bug </title> 
   <description>Changes have been made in Git for this ticket:

Revert &quot;Bug #10093: Convert IMP to use new Horde_Imap_Client 1.2 features&quot;
This reverts commit fd89d722f80b5b9715033d21e5ecbb06605b7ab0.

Conflicts:

	imp/docs/CHANGES
	imp/lib/LoginTasks/SystemTask/Upgrade.php
	imp/package.xml

 23 files changed, 117 insertions(+), 254 deletions(-)
http://git.horde.org/horde-git/-/commit/2efc8b4f267c211bfb30c324ee0c82459304d9a1</description> 
   <pubDate>Thu, 17 Nov 2011 21:09:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t68935</link> 
  </item> 
   
  <item> 
   <title>Changing target to 5.1.  I am more than comfortable with the</title> 
   <description>Changing target to 5.1.  I am more than comfortable with the stability of the release.  However, it makes several (6-7) changes in configuration files, and this is a significant enough change to justify releasing in a minor, rather than point, release.  if just to make the UPGRADING file easier to parse.</description> 
   <pubDate>Thu, 17 Nov 2011 21:11:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t68937</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 28b604652b636aaa464896e7ac5ab63b9716dac2
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Fri Oct 28 18:27:45 2011 -0600

    Bug #10093: Convert IMP to use new Horde_Imap_Client 1.2 features
    
    IMP now entirely handles IMAP mailbox names internally in UTF-8.
    
    This does, however, mean several preferences and configuration
    parameters may need to be changed.  Current preference values will be
    automatically updated.  This is a necessary evil, or else there will be
    NO way to accurately determine the charset in future versions.  (Most
    users should be using default values, so this will not affect them.
    Addtionally, from feeback, it seems likely that very few users are
    currently using the fixed_folders configuration option).
    
    Conflicts:
    
    	imp/docs/CHANGES
    	imp/package.xml

 imp/config/backends.php                           |    6 +-
 imp/config/conf.xml                               |    5 +-
 imp/config/hooks.php.dist                         |    8 +-
 imp/config/prefs.php                              |   20 +----
 imp/docs/CHANGES                                  |    1 +
 imp/docs/UPGRADING                                |   15 +++
 imp/folders.php                                   |   12 +--
 imp/lib/Ajax/Application.php                      |    7 +-
 imp/lib/Api.php                                   |   20 ++--
 imp/lib/Compose.php                               |    2 +-
 imp/lib/Flag/User.php                             |    2 +-
 imp/lib/Flags.php                                 |    2 +-
 imp/lib/Imap.php                                  |   98 +++++++++++++++++++-
 imp/lib/Imap/Tree.php                             |    4 +-
 imp/lib/LoginTasks/SystemTask/Upgrade.php         |   38 ++++++++-
 imp/lib/LoginTasks/Task/DeleteSentmailMonthly.php |    4 +-
 imp/lib/LoginTasks/Task/RenameSentmailMonthly.php |    2 +-
 imp/lib/Mailbox.php                               |   95 ++++++++++++---------
 imp/lib/Message.php                               |    2 +-
 imp/lib/Prefs/Ui.php                              |    3 +-
 imp/lib/Ui/Folder.php                             |   21 ++---
 imp/package.xml                                   |    1 +
 imp/templates/imp/folders/import.html             |    2 +-
 23 files changed, 253 insertions(+), 117 deletions(-)

http://git.horde.org/horde-git/-/commit/28b604652b636aaa464896e7ac5ab63b9716dac2</description> 
   <pubDate>Wed, 29 Aug 2012 12:25:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t72442</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit a210ca8bb1cb4689a8752063cf0a7bdcc3d4a3ee
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Thu Nov 17 14:07:12 2011 -0700

    Bug #10093: Updates to reflect that this will be fixed in 5.1

 imp/docs/UPGRADING                        |   38 +++++++++++++---------------
 imp/lib/LoginTasks/SystemTask/Upgrade.php |    6 ++--
 2 files changed, 21 insertions(+), 23 deletions(-)

http://git.horde.org/horde-git/-/commit/a210ca8bb1cb4689a8752063cf0a7bdcc3d4a3ee</description> 
   <pubDate>Wed, 29 Aug 2012 12:25:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10093#t72443</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
