mbox-storage.c revision 7c6ad06e2bed011e3c0425bf1ceb5df3dc33b638
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen/* Copyright (C) 2002-2003 Timo Sirainen */
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen#define CREATE_MODE 0770 /* umask() should limit it more */
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen/* Don't allow creating too long mailbox names. They could start causing
acba68a69cdd6f3f00faa18cccef356d95048e46Timo Sirainen problems when they reach the limit. */
const char *mbox_hide_headers[] = {
unsigned int mbox_hide_headers_count =
return FALSE;
return TRUE;
if (debug) {
return FALSE;
if (debug) {
return FALSE;
if (debug) {
return FALSE;
if (debug)
return TRUE;
if (debug) {
return FALSE;
if (debug) {
return FALSE;
if (debug) {
return FALSE;
if (debug)
return TRUE;
const char *path;
if (debug) {
return TRUE;
return TRUE;
return TRUE;
return TRUE;
return FALSE;
if (debug)
return path;
if (debug)
if (debug)
return path;
if (debug)
if (debug)
if (debug)
return NULL;
if (debug)
return path;
if (debug)
if (debug)
return path;
if (debug)
if (debug)
return path;
return NULL;
return NULL;
if (debug)
return path;
static struct mail_storage *
bool autodetect;
if (autodetect) {
if (debug)
if (p == NULL) {
} while (p != NULL);
return NULL;
return NULL;
return NULL;
if (debug) {
bool newdir;
return TRUE;
return FALSE;
if (newdir) {
return TRUE;
const char *name)
return FALSE;
const char *name)
return FALSE;
const char *name)
return NULL;
if (p == NULL) {
const char *name)
const char *index_dir;
int fd;
return FALSE;
const char *env;
unsigned int min_size;
return FALSE;
if (min_size == 0)
return FALSE;
return FALSE;
static struct mbox_mailbox *
return NULL;
return mbox;
static struct mailbox *
return NULL;
return NULL;
return NULL;
static struct mailbox *
return NULL;
return NULL;
static struct mailbox *
const char *path;
return NULL;
return NULL;
return NULL;
path);
return NULL;
bool directory)
const char *path, *p;
int fd;
if (p != NULL) {
if (directory) {
name);
if (p != NULL) {
newpath);
const char *path;
const char *name,
const char *path;
int ret = 0;
return ret;