Brackets in foldernames

Alain Spineux aspineux at gmail.com
Tue Oct 16 09:29:08 EDT 2007


On 10/11/07, Andrew Morgan <morgan at orst.edu> wrote:
> On Thu, 11 Oct 2007, Eric Luyten wrote:
>
> >> we are in the process of migration from UW-IMAPD to Cyrus. Some of our users
> >> have foldernames with brackets. Is there a way to enable the use of
> >> brackets in foldernames in Cyrus?
> >
> > Michael,
> >
> >
> > We migrated from UW-IMAPD to Cyrus (2.2.13) about a year ago
> > and I had to change the 'GOODCHARS' macro in imap/mboxname.c
> >
> > We added   ()'*?;[]%<>
>
> Wouldn't that present problems for IMAP commands that use the '*' and '%'
> wildcard characters?  Or is there some intelligent escaping of "bad"
> characters in mailbox names used by the IMAP protocol?

I thing IMAP dont provide any escape solution for this, * and % are
just IMAP wildcard characters that should not be used into mailbox
name.
Some imap command (like LIST) will expand % and * as wildcard characters.
Other like CREATE, SEACL ... that dont expect wildcard will not.
I thing this depend of the IMAP client, the way it will achieve its tasks.

Eric look to be confident about the use of these characters, and you
just need brackets.


Hope this help.

>
> When we converted from UW-IMAPD to Cyrus, the script we used turned
> "non-word" characters into underscores using the following regular
> expression:
>
>    $folder =~ s/[^\w\/-]/_/g;
>
>         Andy
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>


-- 
Alain Spineux
aspineux gmail com
May the sources be with you


More information about the Info-cyrus mailing list