[dovecot-cvs] dovecot/src/plugins/expire expire-plugin.c,1.4,1.5
tss at dovecot.org
tss at dovecot.org
Tue Apr 17 19:41:01 EEST 2007
Update of /var/lib/cvs/dovecot/src/plugins/expire
In directory talvi:/tmp/cvs-serv32564/plugins/expire
Modified Files:
expire-plugin.c
Log Message:
Added mailbox_transaction_commit_get_uids() which returns the UID range for
saved/copied messages.
Index: expire-plugin.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/expire/expire-plugin.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- expire-plugin.c 29 Mar 2007 11:51:09 -0000 1.4
+++ expire-plugin.c 17 Apr 2007 16:40:59 -0000 1.5
@@ -100,7 +100,9 @@
static int
expire_mailbox_transaction_commit(struct mailbox_transaction_context *t,
- enum mailbox_sync_flags flags)
+ enum mailbox_sync_flags flags,
+ uint32_t *first_saved_uid_r,
+ uint32_t *last_saved_uid_r)
{
struct expire_mailbox *xpr_box = EXPIRE_CONTEXT(t->box);
struct expire_transaction_context *xt = EXPIRE_CONTEXT(t);
@@ -128,7 +130,9 @@
mail_free(&xt->mail);
i_free(xt);
- if (xpr_box->module_ctx.super.transaction_commit(t, flags) < 0) {
+ if (xpr_box->module_ctx.super.
+ transaction_commit(t, flags, first_saved_uid_r,
+ last_saved_uid_r) < 0) {
t_pop();
return -1;
}
More information about the dovecot-cvs
mailing list