changeset 12674:048d7025c89f

lib-storage: Added mailbox_save_get_transaction().
author Timo Sirainen <tss@iki.fi>
date Mon, 03 Jan 2011 19:06:02 +0200
parents 2b8d7b6bcfc7
children 48fa29e1c34b
files src/lib-storage/mail-storage.c src/lib-storage/mail-storage.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/mail-storage.c	Mon Jan 03 18:59:07 2011 +0200
+++ b/src/lib-storage/mail-storage.c	Mon Jan 03 19:06:02 2011 +0200
@@ -1425,6 +1425,12 @@
 		mailbox_keywords_unref(box, &keywords);
 }
 
+struct mailbox_transaction_context *
+mailbox_save_get_transaction(struct mail_save_context *ctx)
+{
+	return ctx->transaction;
+}
+
 int mailbox_copy(struct mail_save_context **_ctx, struct mail *mail)
 {
 	struct mail_save_context *ctx = *_ctx;
--- a/src/lib-storage/mail-storage.h	Mon Jan 03 18:59:07 2011 +0200
+++ b/src/lib-storage/mail-storage.h	Mon Jan 03 19:06:02 2011 +0200
@@ -591,6 +591,9 @@
 int mailbox_save_finish(struct mail_save_context **ctx);
 void mailbox_save_cancel(struct mail_save_context **ctx);
 
+struct mailbox_transaction_context *
+mailbox_save_get_transaction(struct mail_save_context *ctx);
+
 /* Copy the given message. You'll need to specify the flags etc. using the
    mailbox_save_*() functions. */
 int mailbox_copy(struct mail_save_context **ctx, struct mail *mail);