mbox-storage.c revision f1743785713e7632459d623d5df2108f4b93accb
2d0611ffc9f91c5fc2ddccb93f9a3d17791ae650takashi/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */
#include "istream-raw-mbox.h"
#include "mail-copy.h"
#include "index-mail.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
const char *mbox_hide_headers[] = {
const char *mbox_save_drop_headers[] = {
const char *mailbox_name,
const char *name);
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;
const char *path;
if (!only_root) {
if (debug)
return path;
if (debug)
if (debug)
return path;
if (debug)
if (debug)
return path;
const char **error_r)
return NULL;
return NULL;
return path;
bool autodetect;
if (autodetect) {
if (debug)
error_r) < 0)
const char *path, *p;
if (p == NULL)
return path;
const char **error_r)
const char *layout;
int fd;
(void)restrict_access_use_priv_gid();
rootdir);
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 *
static struct mailbox *
const char *path;
return NULL;
static struct mailbox *
const char *path;
return NULL;
name));
return NULL;
path);
return NULL;
bool directory)
const char *path, *p;
int fd;
if (p != NULL) {
if (directory) {
int ret = 0;
if (sync_flags != 0) {
const char *inbox_path;
return FALSE;
const char *name)
static void mbox_class_init(void)
static void mbox_class_deinit(void)
NULL,
NULL,
NULL,