mailbox-tree.c revision 05ea76547573aec80f1b58654bce7b850dd99501
/* Copyright (C) 2003 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "mailbox-tree.h"
struct mailbox_tree_context {
char separator;
struct mailbox_node *nodes;
};
{
struct mailbox_tree_context *ctx;
return ctx;
}
{
}
static struct mailbox_node *
{
struct mailbox_node **node;
const char *name;
t_push();
continue;
str_truncate(str, 0);
/* find the node */
break;
}
/* not found, create it */
if (!create)
break;
if (*path != '\0')
else {
}
}
if (*path == '\0')
break;
}
t_pop();
return *node;
}
struct mailbox_node *
int *created)
{
}
struct mailbox_node *
{
}