cmd-subscribe.c revision b96b5b0a09f6c88d7fd951f8f628857f9080d5d5
/* Copyright (c) 2002-2007 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "commands.h"
#include "mail-namespace.h"
const char *name)
{
continue;
continue;
/* if prefix has multiple hierarchies, allow subscribing to
any of the hierarchies */
return TRUE;
}
return FALSE;
}
{
struct mail_namespace *ns;
struct mail_storage *storage;
struct mailbox_list *list;
const char *mailbox, *verify_name;
/* <mailbox> */
return FALSE;
&mailbox);
return TRUE;
}
if ((client_workarounds & WORKAROUND_TB_EXTRA_MAILBOX_SEP) != 0 &&
/* verify the validity without the trailing '/' */
}
/* subscribing to a listable namespace prefix, allow it. */
} else {
return TRUE;
}
else {
"OK Subscribe completed." :
"OK Unsubscribe completed.");
}
return TRUE;
}
{
}