mailbox-list-maildir.c revision 65b7beb7cefce89e175920ef6c16118b1b0dbfb3
/* Copyright (C) 2006 Timo Sirainen */
#include "lib.h"
#include "hostpid.h"
#include "home-expand.h"
#include "subscription-file.h"
#include "mailbox-list-maildir.h"
extern struct mailbox_list maildir_mailbox_list;
static struct mailbox_list *maildir_list_alloc(void)
{
struct maildir_mailbox_list *list;
list->temp_prefix =
}
{
struct maildir_mailbox_list *list =
(struct maildir_mailbox_list *)_list;
}
static const char *
{
const char *p;
if (p == NULL)
return name;
}
static bool
{
/* check that there are no adjacent hierarchy separators */
return FALSE;
}
return FALSE;
return FALSE;
return TRUE;
}
static bool maildir_list_is_valid_common_nonfs(const char *name)
{
return FALSE;
/* "." and ".." aren't allowed. */
return FALSE;
}
return TRUE;
}
static bool __attr_noreturn__
const char *mask __attr_unused__)
{
i_unreached();
#ifndef __attrs_used__
return FALSE;
#endif
}
static bool
{
return FALSE;
return TRUE;
return maildir_list_is_valid_common_nonfs(name);
}
static bool
{
return FALSE;
return FALSE;
return TRUE;
return FALSE;
return FALSE;
return TRUE;
}
static const char *
enum mailbox_list_path_type type)
{
struct maildir_mailbox_list *list =
(struct maildir_mailbox_list *)_list;
/* return root directories */
switch (type) {
}
i_unreached();
}
switch (type) {
break;
return t_strdup_printf("%s/%c%s",
}
break;
return "";
}
break;
}
}
}
static int
const char *name,
enum mailbox_name_status *status)
{
struct maildir_mailbox_list *list =
(struct maildir_mailbox_list *)_list;
const char *path;
return 0;
}
return 0;
}
return 0;
}
return 0;
} else {
return -1;
}
}
static const char *
{
struct maildir_mailbox_list *list =
(struct maildir_mailbox_list *)_list;
return list->temp_prefix;
}
{
struct maildir_mailbox_list *list =
(struct maildir_mailbox_list *)_list;
const char *path;
}
struct mailbox_list maildir_mailbox_list = {
{
}
};