[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c, 1.64, 1.65 mbox-sync.c, 1.120, 1.121

cras at dovecot.org cras at dovecot.org
Sat Nov 6 19:20:24 EET 2004


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

Modified Files:
	mbox-save.c mbox-sync.c 
Log Message:
Removed cache_offset from mail_index_record and changed it to use extension
instead. Added possibility to register sync and expunge handlers for
extensions. Changed the way extension resets work: all extension updates
which were committed without having seen the reset are ignored.



Index: mbox-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- mbox-save.c	26 Sep 2004 14:15:56 -0000	1.64
+++ mbox-save.c	6 Nov 2004 17:20:21 -0000	1.65
@@ -346,7 +346,7 @@
 		offset = ctx->output->offset == 0 ? 0 :
 			ctx->output->offset - 1;
 		mail_index_update_ext(ctx->trans, ctx->seq,
-				      ibox->mbox_ext_idx, &offset);
+				      ibox->mbox_ext_idx, &offset, NULL);
 		ctx->next_uid++;
 	}
 	mbox_save_append_flag_headers(ctx->headers,

Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- mbox-sync.c	2 Nov 2004 00:03:56 -0000	1.120
+++ mbox-sync.c	6 Nov 2004 17:20:21 -0000	1.121
@@ -322,7 +322,7 @@
 
 	offset = mail->from_offset;
 	mail_index_update_ext(sync_ctx->t, sync_ctx->idx_seq,
-			      sync_ctx->ibox->mbox_ext_idx, &offset);
+			      sync_ctx->ibox->mbox_ext_idx, &offset, NULL);
 	return 0;
 }
 
@@ -350,7 +350,7 @@
 		if (sync_ctx->ibox->md5hdr_ext_idx != 0) {
 			mail_index_update_ext(sync_ctx->t, sync_ctx->idx_seq,
 					      sync_ctx->ibox->md5hdr_ext_idx,
-					      mail_ctx->hdr_md5_sum);
+					      mail_ctx->hdr_md5_sum, NULL);
 		}
 
 		if (str_len(mail_ctx->uidl) > 0) {
@@ -493,7 +493,7 @@
 
 		offset = mails[idx].from_offset;
 		mail_index_update_ext(sync_ctx->t, mails[idx].idx_seq,
-				      ext_idx, &offset);
+				      ext_idx, &offset, NULL);
 	}
 }
 



More information about the dovecot-cvs mailing list