cmd-list.c revision ce555be496d79e08ca1e0230bf08b502fbf7c56e
4cb2599c5cdf27362a66ac475ce295409c093c92Timo Sirainen/* Copyright (C) 2002 Timo Sirainen */
4cb2599c5cdf27362a66ac475ce295409c093c92Timo Sirainenstatic const char *mailbox_flags2str(enum mailbox_flags flags)
3b94ff5951db4d4eddb7a80ed4e3f61207202635Timo Sirainen const char *str;
4cb2599c5cdf27362a66ac475ce295409c093c92Timo Sirainen str = t_strconcat((flags & MAILBOX_NOSELECT) ? " \\Noselect" : "",
4cb2599c5cdf27362a66ac475ce295409c093c92Timo Sirainen (flags & MAILBOX_NOINFERIORS) ? " \\NoInferiors" : "",
4cb2599c5cdf27362a66ac475ce295409c093c92Timo Sirainen (flags & MAILBOX_UNMARKED) ? " \\UnMarked" : "",
4cb2599c5cdf27362a66ac475ce295409c093c92Timo Sirainenstatic struct list_node *list_node_get(pool_t pool, struct list_node **node,
3b94ff5951db4d4eddb7a80ed4e3f61207202635Timo Sirainen /* escaping is done here to make sure we don't try to escape
3b94ff5951db4d4eddb7a80ed4e3f61207202635Timo Sirainen the separator char */
3b94ff5951db4d4eddb7a80ed4e3f61207202635Timo Sirainen name = str_escape(t_strdup_until(name, path));
3b94ff5951db4d4eddb7a80ed4e3f61207202635Timo Sirainen /* find the node */
3b94ff5951db4d4eddb7a80ed4e3f61207202635Timo Sirainen /* not found, create it */
return *node;
t_push();
const char *buf;
t_pop();
t_push();
t_pop();
const char *cmd;
int sorted;
&sorted);
return FALSE;
if (sorted)
int failed;
return FALSE;
mask++;
if (failed)
return TRUE;