fail-mailbox.c revision 4a3610a21cdc93fe2b2ccb67124c1e0a575b4e1b
/* Copyright (c) 2009-2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "mail-storage-private.h"
#include "mailbox-list-private.h"
#include "fail-mail-storage.h"
#define TEST_UID_VALIDITY 1
{
return FALSE;
}
enum mailbox_feature features)
{
return -1;
}
bool auto_boxes ATTR_UNUSED,
enum mailbox_existence *existence_r)
{
return -1;
}
{
return -1;
}
{
}
{
}
static int
bool directory ATTR_UNUSED)
{
"Mailbox can't be created");
return -1;
}
static int
{
"Mailbox can't be updated");
return -1;
}
{
"Mailbox can't be deleted");
return -1;
}
bool rename_children ATTR_UNUSED)
{
"Mailbox can't be renamed");
return -1;
}
struct mailbox_status *status_r)
{
return -1;
}
bool set ATTR_UNUSED)
{
"Mailbox can't be subscribed");
return -1;
}
static struct mailbox_sync_context *
{
struct mailbox_sync_context *ctx;
return ctx;
}
static bool
{
return FALSE;
}
static int
struct mailbox_sync_status *status_r)
{
return -1;
}
{
}
static struct mailbox_transaction_context *
{
struct mailbox_transaction_context *ctx;
return ctx;
}
static void
{
array_free(&t->module_contexts);
i_free(t);
}
static int
struct mail_transaction_commit_changes *changes_r)
{
return 0;
}
static struct mail_search_context *
struct mail_search_args *args,
{
struct mail_search_context *ctx;
ctx->transaction = t;
return ctx;
}
{
return 0;
}
static bool
{
*tryagain_r = FALSE;
return FALSE;
}
static bool
{
return FALSE;
}
static struct mail_save_context *
{
struct mail_save_context *ctx;
ctx->transaction = t;
return ctx;
}
static int
{
return -1;
}
static int
{
return -1;
}
static int
{
return -1;
}
static void
{
}
static int
{
return -1;
}
{
return FALSE;
}
struct mailbox fail_mailbox = {
.v = {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
};
struct mailbox *
{
*box = fail_mailbox;
return box;
}