cmd-subscribe.c revision cff1f182205e674285cf3ff446a0dcf7afea277d
/* Copyright (c) 2002-2011 Dovecot authors, see the included COPYING file */
#include "imap-common.h"
#include "imap-utf7.h"
#include "imap-commands.h"
#include "mail-namespace.h"
static bool
{
enum mailbox_existence existence;
int ret;
return FALSE;
}
if (existence == MAILBOX_EXISTENCE_NONE) {
mailbox_get_vname(box)));
return FALSE;
}
return TRUE;
}
static bool str_ends_with_char(const char *str, char c)
{
}
{
struct mail_namespace *ns;
const char *mailbox, *orig_mailbox;
bool unsubscribed_mailbox2;
char sep;
/* <mailbox> */
return FALSE;
return TRUE;
if (subscribe) {
mailbox_free(&box);
return TRUE;
}
}
if (!subscribe &&
/* try to unsubscribe both "box" and "box/" */
mailbox_free(&box2);
}
} else {
"OK Subscribe completed." :
"OK Unsubscribe completed.");
}
mailbox_free(&box);
return TRUE;
}
{
}