namespace.c revision 5fb3bff645380804c9db2510940c41db6b8fdb01
/* Copyright (C) 2003 Timo Sirainen */
#include "common.h"
#include "commands.h"
#include "namespace.h"
#include <stdlib.h>
{
} else {
}
}
static struct namespace *
{
else
prefix = "";
if ((flags & MAIL_STORAGE_FLAG_DEBUG) != 0) {
i_info("Namespace: type=%s, prefix=%s, sep=%s, "
"inbox=%s, hidden=%s, subscriptions=%s",
}
i_fatal("Failed to create storage for '%s' with data: %s",
}
return ns;
}
{
enum mail_storage_flags flags;
unsigned int i;
/* first try NAMESPACE_* environments */
for (i = 1; ; i++) {
t_push();
t_pop();
break;
t_push();
t_pop();
}
if (namespaces != NULL)
return namespaces;
/* fallback to MAIL */
/* support also maildir-specific environment */
}
else {
const char *home;
i_fatal("MAIL environment missing and "
"autodetection failed (home %s)", home);
}
}
return ns;
}
{
while (namespaces != NULL) {
}
}
{
char *ret, *p;
return name;
for (p = ret; *p != '\0'; p++) {
}
return ret;
}
static struct namespace *
int show_hidden)
{
bool inbox;
/* find the INBOX namespace */
*mailbox = "INBOX";
return ns;
}
return best;
}
}
}
if (best_len > 0)
}
return best;
}
struct namespace *
{
}
struct namespace *
{
}