[dovecot-cvs] dovecot/src/lib-storage mail-save.c,1.4,1.5

cras at procontrol.fi cras at procontrol.fi
Sun Nov 9 20:26:28 EET 2003


Update of /home/cvs/dovecot/src/lib-storage
In directory danu:/tmp/cvs-serv3937/lib-storage

Modified Files:
	mail-save.c 
Log Message:
istream rewrite. instead of directly setting any limits to stream, you now
have to use i_stream_create_limit() to existing stream. this should make the
istreams much easier to create and understand how they work.



Index: mail-save.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-save.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mail-save.c	29 Oct 2003 13:53:12 -0000	1.4
+++ mail-save.c	9 Nov 2003 18:26:25 -0000	1.5
@@ -167,8 +167,7 @@
 			errno = input->stream_errno;
 			if (errno == 0) {
 				/* EOF */
-				if (input->v_offset != input->v_limit &&
-				    input->v_limit != 0) {
+				if (input->eof) {
 					/* too early */
 					mail_storage_set_error(storage,
 						"Unexpected EOF");



More information about the dovecot-cvs mailing list