mbox-save.c revision c150beda11da6fbbb1a936829550945d5e884f68
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R/* Copyright (c) 2002-2017 Dovecot authors, see the included COPYING file */
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.R#define MBOX_SAVECTX(s) container_of(s, struct mbox_save_context, ctx)
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Rstatic void write_error(struct mbox_save_context *ctx)
ee1e4c0fa7e8a973ecf16b7535664b8f47fc7e75Niranjan M.Rstatic int mbox_seek_to_end(struct mbox_save_context *ctx, uoff_t *offset)
const char *from_envelope)
int ret;
T_BEGIN {
const char *line;
} T_END;
return ret;
const char *str;
const char *const *keyword_names;
for (i = 0; i < count; i++) {
struct mbox_transaction_context *t)
int ret;
if (t->write_lock_id == 0) {
if (ret < 0)
FALSE);
void *randbuf;
static struct istream *
MAIL_STORAGE_FLAG_KEEP_HEADER_MD5) != 0) {
const char *hdr;
T_BEGIN {
} T_END;
return ret;
struct mail_save_context *
return t->save_ctx;
const unsigned char *data;
if (size > 0) {
if (ret == 0)
const unsigned char *data;
for (i = 0; i < size; i++) {
if (i != size) {
if (ret == 0)
T_BEGIN {
} T_END;
int ret = 0;
if (ret == 0) {
if (ret < 0)
return ret;