test-mailbox.c revision 84ed9f8f3d0e5ed47607ef417618e49e4f865557
/* Copyright (c) 2009 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "mail-storage-private.h"
#include "test-mail-storage.h"
#define TEST_UID_VALIDITY 1
{
return FALSE;
}
{
return TRUE;
}
enum mailbox_feature features)
{
return 0;
}
{
return 0;
}
{
}
struct mailbox_status *status_r)
{
}
static struct mailbox_sync_context *
{
struct mailbox_sync_context *ctx;
return ctx;
}
static bool
{
return FALSE;
}
static int
struct mailbox_status *status_r)
{
return 0;
}
{
}
static struct mailbox_transaction_context *
{
struct mailbox_transaction_context *ctx;
return ctx;
}
static void
{
array_free(&t->module_contexts);
i_free(t);
}
static int
{
*first_saved_uid_r = *last_saved_uid_r = 0;
return 0;
}
static void
{
}
static int
const char *const keywords[] ATTR_UNUSED,
struct mail_keywords **keywords_r,
bool skip_invalid ATTR_UNUSED)
{
return 0;
}
static struct mail_keywords *
{
struct mail_keywords *keywords;
return keywords;
}
{
}
{
}
static bool
const char *keyword ATTR_UNUSED,
const char **error_r ATTR_UNUSED)
{
return TRUE;
}
static void
{
}
static void
{
}
static bool
{
return FALSE;
}
static struct mailbox_header_lookup_ctx *
const char *const headers[])
{
struct mailbox_header_lookup_ctx *ctx;
return ctx;
}
static void
{
}
static struct mail_search_context *
struct mail_search_args *args,
{
struct mail_search_context *ctx;
ctx->transaction = t;
return ctx;
}
{
return 0;
}
static int
bool *tryagain_r)
{
*tryagain_r = FALSE;
return 0;
}
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 test_mailbox = {
{
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
};
struct mailbox *
enum mailbox_flags flags)
{
*box = test_mailbox;
return box;
}