[dovecot-cvs] dovecot/src/lib-index/mbox istream-mbox.c,1.8,1.9 mbox-sync-full.c,1.23,1.24

cras at procontrol.fi cras at procontrol.fi
Thu Nov 13 17:51:24 EET 2003


Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv25910

Modified Files:
	istream-mbox.c mbox-sync-full.c 
Log Message:
fixes



Index: istream-mbox.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/istream-mbox.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- istream-mbox.c	9 Nov 2003 18:26:25 -0000	1.8
+++ istream-mbox.c	13 Nov 2003 15:51:22 -0000	1.9
@@ -132,5 +132,5 @@
 	mstream->istream.seek = _seek;
 
 	return _i_stream_create(&mstream->istream, pool, -1,
-				mstream->v_header_size + body_size);
+				input->real_stream->abs_start_offset);
 }

Index: mbox-sync-full.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-sync-full.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- mbox-sync-full.c	11 Nov 2003 16:36:59 -0000	1.23
+++ mbox-sync-full.c	13 Nov 2003 15:51:22 -0000	1.24
@@ -332,7 +332,7 @@
 		} else if (st.st_mtime == orig_st.st_mtime &&
 			   st.st_size == orig_st.st_size) {
 			i_stream_seek(input, continue_offset);
-			failed = !mbox_index_append_stream(index, input);
+			failed = mbox_index_append_stream(index, input) <= 0;
 		} else {
 			failed = mbox_sync_from_stream(index, input) <= 0;
 		}



More information about the dovecot-cvs mailing list