[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-save.c, 1.22, 1.23

tss at dovecot.org tss at dovecot.org
Tue Apr 17 19:40:59 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv32564/lib-storage/index/dbox

Modified Files:
	dbox-save.c 
Log Message:
Added mailbox_transaction_commit_get_uids() which returns the UID range for
saved/copied messages.



Index: dbox-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-save.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- dbox-save.c	30 Mar 2007 12:44:03 -0000	1.22
+++ dbox-save.c	17 Apr 2007 16:40:57 -0000	1.23
@@ -346,6 +346,9 @@
 	}
 	mail_index_append_assign_uids(ctx->trans, uid, &next_uid);
 
+	t->ictx.first_saved_uid = uid;
+	t->ictx.last_saved_uid = next_uid - 1;
+
 	/* update UIDs */
 	for (seq = t->first_saved_mail_seq; seq <= ctx->seq; seq++, uid++) {
 		ret = dbox_mail_lookup_offset(&t->ictx, seq,



More information about the dovecot-cvs mailing list