diff src/lib-storage/index/dbox/dbox-uidlist.c @ 4304:3bb4f35b99d4 HEAD

dbox_rotate_size checking was wrong.
author Timo Sirainen <tss@iki.fi>
date Thu, 08 Jun 2006 17:42:21 +0300
parents be915546ce49
children f693898fee3b
line wrap: on
line diff
--- a/src/lib-storage/index/dbox/dbox-uidlist.c	Thu Jun 08 15:49:31 2006 +0300
+++ b/src/lib-storage/index/dbox/dbox-uidlist.c	Thu Jun 08 17:42:21 2006 +0300
@@ -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');
 }
 
@@ -1062,7 +1059,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;