cmd-rename.c revision 08d6658a4e2ec8104cd1307f6baa75fdb07a24f8
/* Copyright (c) 2002-2009 Dovecot authors, see the included COPYING file */
#include "imap-common.h"
#include "mail-namespace.h"
#include "imap-commands.h"
{
struct mailbox_list *list;
struct mail_namespace *ns;
unsigned int oldlen;
/* <old name> <new name> */
return FALSE;
return TRUE;
if (old_storage == NULL)
return TRUE;
if (new_storage == NULL)
return TRUE;
if (old_storage != new_storage) {
"NO Can't rename mailbox to another storage type.");
return TRUE;
}
really no point in doing it anyway. */
"NO Can't rename mailbox under its own child.");
return TRUE;
}
else {
}
return TRUE;
}