[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-uidlist.c, 1.28.2.2, 1.28.2.3

cras at dovecot.org cras at dovecot.org
Thu Jun 8 17:42:21 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	dbox-uidlist.c 
Log Message:
dbox_rotate_size checking was wrong.



Index: dbox-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-uidlist.c,v
retrieving revision 1.28.2.2
retrieving revision 1.28.2.3
diff -u -d -r1.28.2.2 -r1.28.2.3
--- dbox-uidlist.c	10 May 2006 10:47:21 -0000	1.28.2.2
+++ dbox-uidlist.c	8 Jun 2006 14:42:19 -0000	1.28.2.3
@@ -35,9 +35,6 @@
 
 	struct dotlock *dotlock;
 	array_t ARRAY_DEFINE(seqs, unsigned int);
-
-	/* append offset for the first mail we've saved */
-	uoff_t append_offset;
 };
 
 struct dbox_uidlist {
@@ -671,7 +668,7 @@
 
 	/* add creation time and file size */
 	str_printfa(str, " %s %s", dec2str(save_file->file->create_time),
-		    dec2str(save_file->append_offset));
+		    dec2str(save_file->file->append_offset));
 	str_append_c(str, '\n');
 }
 
@@ -1075,7 +1072,7 @@
 	files = array_get(&ctx->files, &count);
 	for (i = 0; i < count; i++) {
 		if (DBOX_CAN_APPEND(ctx, files[i]->file->create_time,
-				    files[i]->append_offset)) {
+				    files[i]->file->append_offset)) {
 			if (dbox_reopen_file(ctx, files[i]) < 0)
 				return -1;
 



More information about the dovecot-cvs mailing list