cmd-list.c revision caffa4b1d81af4d48c1eedba2103f291beb0f62d
/* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
#include "imap-match.h"
struct _ListNode {
char *name; /* escaped */
};
typedef struct {
} ListContext;
{
const char *str;
NULL);
}
{
t_push();
continue;
/* escaping is done here to make sure we don't try to escape
the separator char */
/* find the node */
break;
}
/* not found, create it */
}
if (*path == '\0')
break;
}
t_pop();
return *node;
}
{
/* set the flags, this also nicely overrides the NOSELECT flag
set by list_node_get() */
}
const ImapMatchGlob *glob)
{
const char *name;
t_push();
/* doesn't match the mask */
t_pop();
continue;
}
/* node->name should already be escaped */
t_pop();
}
}
{
if (IS_ESCAPED_CHAR(sep_chr)) {
sep[0] = '\\';
} else {
}
/* <reference> <mailbox wildcards> */
return FALSE;
/* special request to return the hierarchy delimiter */
} else {
if (*ref != '\0') {
/* join reference + pattern */
/* LIST A. .B -> A.B */
pattern++;
}
}
if (!subscribed) {
} else {
}
}
"OK Lsub completed." :
"OK List completed.");
return TRUE;
}
{
}