[Tickets #10093] Re: Cannot create folder name with ampersand

bugs at horde.org bugs at horde.org
Tue May 17 16:11:14 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10093
------------------------------------------------------------------------------
  Ticket             | 10093
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | Cannot create folder name with ampersand
  Queue              | IMP
  Version            | Git master
  Type               | Bug
  State              | Assigned
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2011-05-17 16:11) wrote:

> Trying to create a folder through DIMP like "foo & bar" gives me the  
> error message "the folder "foo  bar" cannot be created". So these  
> are actually two bugs. At one place the folder name isn't correctly  
> encoded to be a valid IMAP mailbox name, and the ampersand gets lost  
> when reporting back the error.

We shouldn't allow creation of mailboxes with ampersands at all.  From  
RFC 3501:

    5)    Two characters, "#" and "&", 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't see them in an error message because we are trying to convert  
them from UTF7-IMAP -> UTF-8.

But we shouldn't even get to this point - we should simply reject  
these mailbox names.






More information about the bugs mailing list