maildir-transaction.c revision 721b683078dab7a46e2a42cfcb81c7d066b57dea
/* Copyright (C) 2004 Timo Sirainen */
#include "lib.h"
#include "maildir-storage.h"
struct mailbox_transaction_context *
{
struct maildir_transaction_context *t;
return &t->ictx.mailbox_ctx;
}
{
struct maildir_transaction_context *t =
(struct maildir_transaction_context *)_t;
struct maildir_save_context *save_ctx;
int ret = 0;
if (maildir_transaction_save_commit_pre(t->save_ctx) < 0) {
ret = -1;
}
}
if (index_transaction_commit(_t) < 0)
ret = -1;
/* transaction is destroyed. */
}
{
struct maildir_transaction_context *t =
(struct maildir_transaction_context *)_t;
}