virtual-mail.c revision db0735f9b388c5bcfb781b1b25015e898d63d953
/* Copyright (c) 2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "index-mail.h"
#include "virtual-storage.h"
struct virtual_mail {
struct index_mail imail;
struct mailbox_header_lookup_ctx *wanted_headers;
/* currently active mail */
struct mail *backend_mail;
/* all allocated mails */
};
struct mail *
virtual_mail_alloc(struct mailbox_transaction_context *t,
struct mailbox_header_lookup_ctx *wanted_headers)
{
struct virtual_mail *vmail;
sizeof(void *), 5);
}
{
unsigned int i, count;
for (i = 0; i < count; i++)
}
static struct mail *
{
unsigned int i, count;
for (i = 0; i < count; i++) {
return mails[i];
}
return NULL;
}
{
struct virtual_backend_box *bbox;
struct mailbox_transaction_context *backend_trans;
const struct virtual_mail_index_record *vrec;
const struct mail_index_record *rec;
const void *data;
bool expunged;
}
}
{
return FALSE;
return TRUE;
}
static int
{
}
static int
{
int tz;
if (timezone_r == NULL)
timezone_r = &tz;
}
{
}
{
}
{
}
{
}
static int
bool decode_to_utf8, const char **value_r)
{
}
static int
bool decode_to_utf8, const char *const **value_r)
{
}
static int
struct mailbox_header_lookup_ctx *headers,
{
}
static int
struct message_size *body_size,
{
}
static int
const char **value_r)
{
}
static void
enum mail_flags flags)
{
}
static void
struct mail_keywords *keywords)
{
}
{
}
static void
{
}
{
}
struct mail_vfuncs virtual_mail_vfuncs = {
NULL,
};