cmd-subscribe.c revision 08d6658a4e2ec8104cd1307f6baa75fdb07a24f8
/* Copyright (c) 2002-2009 Dovecot authors, see the included COPYING file */
#include "imap-common.h"
#include "imap-commands.h"
#include "mail-namespace.h"
const char *name)
{
NAMESPACE_FLAG_LIST_CHILDREN)) == 0)
continue;
continue;
/* if prefix has multiple hierarchies, allow subscribing to
any of the hierarchies */
return TRUE;
}
return FALSE;
}
{
struct mail_storage *storage;
/* <mailbox> */
return FALSE;
return TRUE;
/* now find a namespace where the subscription can be added to */
&mailbox);
return TRUE;
}
/* subscription is being written to a different namespace
than where the mailbox exists. */
/* drop the common prefix */
}
/* 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;
}
{
}