Renaming top level/sub mailboxes

Bron Gondwana brong at fastmail.fm
Tue Jan 25 15:39:32 EST 2011


On Tue, Jan 25, 2011 at 03:51:51PM +0000, David Mayo wrote:
> Simon,
> 
> On 25/01/11 15:40, Simon Matter wrote:
> 
> >> When I try to move a top level mailbox to be a sub mailbox, or vice
> >> versa, the IMAP server returns:
> >>
> >> "NO Operation is not supported on mailbox"
> >>
> >> eg.
> >>
> >> renm user.toplevel user.aa.toplevel
> >> renm user.aa.toplevel user.toplevel
> >>
> >> Why is this? Can I get around it other than creating a new mailbox and
> >> copying the messages over (which loses the \Seen state).
> >
> > Is 'allowusermoves' enabled in imapd.conf?
> 
> Yes. I can rename top level mailboxes to other top level mailboxes, or 
> sub mailboxes to other sub mailboxes - it's just renaming between the 
> two types that fails.

The comment in the source code says this is intentional - rename INBOX =>
INBOX.sub is a special case, and any other rename to or from user.NAME is
rejected on the grounds that you probably don't know what you are doing!

Bron.


More information about the Info-cyrus mailing list