cmd-subscribe.c revision 88b65d56eb17be597a002ab711f6e592cd0c8e26
/* Copyright (c) 2002-2008 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;
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 '/' */
}
verify_name)) {
/* subscribing to a listable namespace prefix, allow it. */
} else {
return TRUE;
}
else {
"OK Subscribe completed." :
"OK Unsubscribe completed.");
}
return TRUE;
}
{
}