[dovecot-cvs] dovecot/src/lib-storage/index/cydir cydir-save.c, 1.3, 1.4
tss at dovecot.org
tss at dovecot.org
Tue Apr 17 19:40:58 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/cydir
In directory talvi:/tmp/cvs-serv32564/lib-storage/index/cydir
Modified Files:
cydir-save.c
Log Message:
Added mailbox_transaction_commit_get_uids() which returns the UID range for
saved/copied messages.
Index: cydir-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/cydir/cydir-save.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cydir-save.c 31 Mar 2007 13:18:12 -0000 1.3
+++ cydir-save.c 17 Apr 2007 16:40:56 -0000 1.4
@@ -166,6 +166,8 @@
int cydir_transaction_save_commit_pre(struct cydir_save_context *ctx)
{
+ struct cydir_transaction_context *t =
+ (struct cydir_transaction_context *)ctx->ctx.transaction;
const struct mail_index_header *hdr;
uint32_t i, uid, next_uid;
const char *dir;
@@ -184,6 +186,9 @@
uid = hdr->next_uid;
mail_index_append_assign_uids(ctx->trans, uid, &next_uid);
+ t->ictx.first_saved_uid = uid;
+ t->ictx.last_saved_uid = next_uid - 1;
+
dir = mailbox_list_get_path(ctx->mbox->storage->storage.list,
ctx->mbox->ibox.box.name,
MAILBOX_LIST_PATH_TYPE_MAILBOX);
More information about the dovecot-cvs
mailing list