R: R: R: Error creating mailboxex with an "&" inside

Michael Menge michael.menge at zdv.uni-tuebingen.de
Thu Feb 7 11:50:05 EST 2008


Hi,

your problem lies in "mboxname_policycheck" in mboxname.c

there it is checked if the & is followed by a valide utf7 encoded charackter.
I think that if you breack this check it will breake all non-ascii  
charackters.



Quoting Toschi Pietro <Pietro.Toschi at actalis.it>:

>
> Alain,
> mailboxes.c specifies, in GOODCHARS macro, the list of allowed   
> characters for creating subfolders. Do you know where it is the list  
>  of characters admitted when creating a mailbox?
>
> Thanx
>
> Pietro
>
>
> -----Messaggio originale-----
> Da: Alain Spineux [mailto:aspineux at gmail.com]
> Inviato: martedì 5 febbraio 2008 17.43
> A: Toschi Pietro
> Cc: info-cyrus at lists.andrew.cmu.edu
> Oggetto: Re: R: R: Error creating mailboxex with an "&" inside
>
> On Feb 5, 2008 5:22 PM, Toschi Pietro <Pietro.Toschi at actalis.it> wrote:
>>
>> Test result: failed.
>>
>> Even if testsaslauthd -u test\&-test at domain.com -p <password>   
>> results in an 0: OK "Success." response, and the mailbox really   
>> exists on IMAP server, I can't successfully login using IMAP   
>> clients to the IMAP server.
>>
>> Maybe some issues related to the way that cyrus and sasl communicate
>
> The restriction is done in cyrus itself!
> Their is 2 different list of allowed characters!
>
> For example, cyradm allow you to create some root mailbox (like
> user/test&test at domain.com)
> but dont allow you to manage it !
> Try this
>> sam user/test&test at domain.com anyone p
> you will get an error !
>
>
>
>>
>>
>> -----Messaggio originale-----
>> Da: Toschi Pietro
>> Inviato: martedì 5 febbraio 2008 15.49
>> A: 'Michael Menge'; 'Jorey Bump'
>> Cc: info-cyrus at lists.andrew.cmu.edu
>> Oggetto: R: R: Error creating mailboxex with an "&" inside
>>
>>
>> I'm afraid I think you're right.
>> The problem is not related to the Kolab patch, in fact I tried to   
>> create a maibox both on a patched and an unpatched server with the   
>> same results, using cyradm:
>>
>> >cm user/test&test at domain.com
>> Returns an error from cyradm
>>
>> >cm user/test\&test at domain.com
>> Returns an error from IMAP server:
>> XX CREATE user/test&test at domain.com
>> XX NO Invalid Mailbox Name
>>
>> >cm user/test\&-test at domain.com
>> Actually creates user/test&-test at domain.com
>>
>> Maybe a well-designed IMAP client should consider &- an escape   
>> sequence and show it a single & like in test&test at domain.com, but   
>> doubts about authentication problems still remain. I'll have a   
>> complete test in a short using Thunderbird and let you know my   
>> results.
>>
>>
>> See you later.
>>
>> P
>>
>>
>> -----Messaggio originale-----
>> Da: info-cyrus-bounces at lists.andrew.cmu.edu   
>> [mailto:info-cyrus-bounces at lists.andrew.cmu.edu] Per conto di   
>> Michael Menge
>> Inviato: martedì 5 febbraio 2008 15.20
>> A: info-cyrus at lists.andrew.cmu.edu
>> Oggetto: Re: R: Error creating mailboxex with an "&" inside
>>
>> Hi,
>>
>> i think you have another problem, & has to be encoded in imap as &- .
>> The encoding is done by the mailclient. But on the other hand cyrus
>> expacts the user
>> to have a folder under user that matches the username used for   
>> authentication.
>> IMHO using & in username is a bad idea as the authenticationlayer does not
>> know the special meaning of & and that it has to be escaped as &-
>>
>>
>>
>> Quoting Toschi Pietro <Pietro.Toschi at actalis.it>:
>>
>> > Unfortunately I am using imapsync to migrate messages between
>> > already created top-level mailboxex, but it doesn't seem to take
>> > care of those details for me and failed to create every subfolder
>> > with special character until I applied the Kolab patch that modified
>> >  GOODCHAR macro in mailboxes.c.
>> >
>> > Apparently, the Kolab patch doesn't apply to top level mailboxes,
>> > INBOX. And creating user/this&that at something.com still fails with
>> > cyradm or other applications.
>> >
>> > pietro
>> >
>> >
>> >
>> >
>> > -----Messaggio originale-----
>> > Da: Jorey Bump [mailto:list at joreybump.com]
>> > Inviato: martedì 5 febbraio 2008 14.10
>> > A: Toschi Pietro
>> > Cc: info-cyrus at lists.andrew.cmu.edu
>> > Oggetto: Re: Error creating mailboxex with an "&" inside
>> >
>> > Toschi Pietro wrote, at 02/05/2008 06:57 AM:
>> >
>> >> Apparently, cyrus-imapd does not support mailboxes with some letters
>> >> inside the name. "&" is one of that. I have some mailboxes containing
>> >> that symbol to be migrated from another server (SUN) but I always get an
>> >> error.
>> >>
>> >> Looking at the IMAP RFC it seems very complex to me to understand what
>> >> characters are supported and how by the protocol. I wander if there is a
>> >> way to make cyrus accept such mailboxes, for example using some sort of
>> >> escape sequences, encoding rules or so.
>> >>
>> >> Do someone have a solution to this annoying problem?
>> >
>> > In Thunderbird, I can create a new folder named:
>> >
>> >   this&that
>> >
>> > This results in a directory on the server named:
>> >
>> >   this&-that
>> >
>> > What tool are you using to migrate your mailboxes? Hopefully, something
>> > like imapsync will take care of these details for you.
>> > ----
>> > 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
>> >
>>
>>
>>
>> --------------------------------------------------------------------------------
>> M.Menge                                 Tel.: (49) 7071/29-70316
>> Universitaet Tuebingen                  Fax.: (49) 7071/29-5912
>> Zentrum fuer Datenverarbeitung          mail:
>> michael.menge at zdv.uni-tuebingen.de
>> Waechterstrasse 76
>> 72074 Tuebingen
>>
>
>
>
> --
> Alain Spineux
> aspineux gmail com
> May the sources be with you
> ----
> 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
>



--------------------------------------------------------------------------------
M.Menge                                 Tel.: (49) 7071/29-70316
Universitaet Tuebingen                  Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung          mail:  
michael.menge at zdv.uni-tuebingen.de
Waechterstrasse 76
72074 Tuebingen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5339 bytes
Desc: S/MIME krytographische Unterschrift
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080207/fc5274c5/attachment.bin 


More information about the Info-cyrus mailing list