#include "imap-quote.h"
#include "imap-match.h"
#include "commands.h"
+#include "namespace.h"
static const char *mailbox_flags2str(enum mailbox_flags flags, int listext)
{
char sep_chr, sep[3];
int failed, listext;
- storage = client_find_storage(client, "");
- if (storage == NULL)
- return TRUE;
+ /* FIXME: really needs some work.. */
+ storage = client->namespaces->storage;
sep_chr = storage->hierarchy_sep;
if (sep_chr == '"' || sep_chr == '\\') {
if (old_storage != new_storage) {
client_send_tagline(client,
- "NO Can't rename mailbox to another namespace.");
+ "NO Can't rename mailbox to another storage type.");
return TRUE;
}