dovecot-2.0: lib-storage: Added mailbox_save_get_transaction().

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 3 19:06:56 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/048d7025c89f
changeset: 12539:048d7025c89f
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 03 19:06:02 2011 +0200
description:
lib-storage: Added mailbox_save_get_transaction().

diffstat:

 src/lib-storage/mail-storage.c |  6 ++++++
 src/lib-storage/mail-storage.h |  3 +++
 2 files changed, 9 insertions(+), 0 deletions(-)

diffs (29 lines):

diff -r 2b8d7b6bcfc7 -r 048d7025c89f src/lib-storage/mail-storage.c
--- 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;
diff -r 2b8d7b6bcfc7 -r 048d7025c89f src/lib-storage/mail-storage.h
--- 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);


More information about the dovecot-cvs mailing list