Bug#551923: mailbox rename fails with special user names

Dan White dwhite at olp.net
Sun Jan 17 17:06:08 UTC 2010


On 17/01/10 10:38 +0100, Alessandro Polverini wrote:
> Dan White wrote:
>> [...]
>> This does not work for any top-level mailboxes. The dot in the above (in
>> the case where unixhierarchysep is set to yes) is not relevant:
>>
>> zek.olp.net> cm user/test
>> zek.olp.net> setacl user/test cyrus all
>> zek.olp.net> rename user/test user/test2
>> renamemailbox: Operation is not supported on mailbox
> If this helps on my setup (cyrus 2.2.13) I can rename mailboxes just fine:
>
> localhost> cm user/test1
> localhost> rename user/test1 user/test2
> localhost>
>
> I have unixhierarchysep is set to yes.
>
> Alex

Alex,

You are absolutely right. I missed the imapd.conf option 'allowusermoves:
1'.

Do you have that set? With that option set, I can move top level user
mailboxes:

zek.olp.net> create user/test
zek.olp.net> rename user/test user/test2
zek.olp.net> create user/cyrus.test
zek.olp.net> rename user/cyrus.test user/test.cyrus
renamemailbox: Permission denied
zek.olp.net> setacl user/cyrus.test cyrus all
zek.olp.net> rename user/cyrus.test user/test.cyrus
zek.olp.net> lm
user/cyrus.test (\HasNoChildren)   user/dwhite/test (\HasNoChildren)  
user/dwhite (\HasChildren)         user/test.cyrus (\HasNoChildren)   
user/dwhite/spam (\HasNoChildren)  user/test2 (\HasNoChildren)        

So I'm able to move toplevel mailboxes with the allowusermoves set to one,
but I'm not allowed to move the (presumably) top level mailbox of
user/cyrus.test until I give the cyrus user permissions on it.

On 2.3.16, I get:

zek.olp.net> create user/test
zek.olp.net> rename user/test user/test2
zek.olp.net> create user/cyrus.test
zek.olp.net> rename user/cyrus.test user/test.cyrus
renamemailbox: Permission denied
zek.olp.net> setacl user/cyrus.test cyrus all
zek.olp.net> rename user/cyrus.test user/test.cyrus
renamemailbox: System I/O error

I'll take a closer look at why.

-- 
Dan White





More information about the Pkg-Cyrus-imapd-Debian-devel mailing list