raw-storage.c revision 61b0637759146621cbb7edcbd0b03a71cfd66dfe
/* Copyright (c) 2007-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "istream.h"
#include "index-mail.h"
#include "mail-copy.h"
#include "raw-sync.h"
#include "raw-storage.h"
extern struct mail_storage raw_storage;
extern struct mailbox raw_mailbox;
static struct mail_storage *raw_storage_alloc(void)
{
struct raw_storage *storage;
}
static void
struct mailbox_list_settings *set)
{
}
static struct mailbox *
enum mailbox_flags flags)
{
struct raw_mailbox *mbox;
else {
}
}
{
int fd;
if (fd == -1) {
}
return -1;
}
}
static int
bool directory ATTR_UNUSED)
{
"Raw mailbox creation isn't supported");
return -1;
}
static int
{
"Raw mailbox update isn't supported");
return -1;
}
{
}
const char *mailbox_name ATTR_UNUSED,
enum mailbox_list_file_type type,
enum mailbox_info_flags *flags_r)
{
const char *path;
/* try to avoid stat() with these checks */
if (type == MAILBOX_LIST_FILE_TYPE_DIR) {
return 1;
}
if (type != MAILBOX_LIST_FILE_TYPE_SYMLINK &&
return 1;
}
/* need to stat() then */
else
return 1;
return 1;
return 0;
} else {
path);
return -1;
}
}
struct mailbox_list *list)
{
}
struct mail_storage raw_storage = {
.name = RAW_STORAGE_NAME,
.v = {
NULL,
NULL,
NULL,
NULL,
}
};
struct mailbox raw_mailbox = {
.v = {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
};