cmd-subscribe.c revision 2615df45a8027948a474abe5e817b34b0499c171
/* 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;
}
{
/* <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;
}
{
}