Invalid mailbox name

Paul van der Vlis paul at vandervlis.nl
Thu Sep 22 12:37:32 EDT 2016


Op 22-09-16 om 09:46 schreef Michael Menge via Info-cyrus:
> 
> Quoting Paul van der Vlis via Info-cyrus <info-cyrus at lists.andrew.cmu.edu>:
> 
>> Op 21-09-16 om 14:11 schreef Michael Menge via Info-cyrus:
>>> Hi,
>>>
>>> Quoting Paul van der Vlis via Info-cyrus
>>> <info-cyrus at lists.andrew.cmu.edu>:
>>>
>>>> Hello,
>>>>
>>>> I am syncing many mailboxes from one IMAP server to another. Now I get
>>>> sometimes errors on mailbox names. I found out that Cyrus does not
>>>> accept brackets in a mailbox name. Is there documentation about what
>>>> characters are accepted in mailbox names??
>>>
>>> The allowed ASCII-Chars are defined in the macro GOODCHARS in
>>> imap/mboxname.c
>>> (https://github.com/cyrusimap/cyrus-imapd/blob/master/imap/mboxname.c#L1495).
>>>
>>>
>>> non-ASCII-Chars are handled by RFC 3501 5.1.3.
>>>
>>> This subject has been discussed a few years ago on this list, and
>>> GOODCHARS
>>> has been changed between cyrus versions.
>>>
>>> 2.2:    #define GOODCHARS "
>>> +,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~"
>>> 2.3:    #define GOODCHARS "
>>> #$'+,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~"
>>>
>>> Master: #define GOODCHARS "
>>> #$'()*+,-.0123456789:=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_abcdefghijklmnopqrstuvwxyz~"
>>>
>>
>> Thanks for your answer!
>>
>> I am wondering about the dot. So far I know I cannot use it in a mailbox
>> name, but it is in the list.
>>
> 
> I suspect that your cyrus is configured to use the . as hierarchy
> seperator.

Correct.

> see "unixhierarchysep:" in imapd.conf manpage for details.

Ah, I know about that.

But I think it's strange to have a dot in the list of GOODCHARS when
it's used as a hierarchy seperator...

>> And what's "master" exactly? So far I see, I cannot use e.g. brackets in
>> a mailbox name.
> 
> Master is the name of the main development branch in git. A new branch for
> cyrus imapd 3.0 will be forked from the master branch with the release of
> the new version.

Ah sorry, now I understand.

With regards,
Paul van der Vlis.


-- 
Paul van der Vlis Linux systeembeheer Groningen
https://www.vandervlis.nl/



More information about the Info-cyrus mailing list