[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c, 1.97, 1.98

cras at dovecot.org cras at dovecot.org
Wed Aug 2 03:16:21 EEST 2006


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

Modified Files:
	mbox-save.c 
Log Message:
We wrote mail bodies through raw output stream, instead of the one that made
sure that CR+LF linefeeds were as configured.



Index: mbox-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- mbox-save.c	28 Jun 2006 13:10:53 -0000	1.97
+++ mbox-save.c	2 Aug 2006 00:16:18 -0000	1.98
@@ -460,8 +460,9 @@
 				return 0;
 
 			data = i_stream_get_data(ctx->input, &size);
-			if (o_stream_send(ctx->output, data, size) < 0) {
-				write_error(ctx, ctx->output->stream_errno);
+			if (o_stream_send(ctx->body_output, data, size) < 0) {
+				write_error(ctx,
+					    ctx->body_output->stream_errno);
 				return -1;
 			}
 			ctx->last_char = data[size-1];
@@ -473,8 +474,9 @@
 			   otherwise some mbox parsers don't like the result.
 			   this makes it impossible to save a mail that doesn't
 			   end with LF though. */
-			if (o_stream_send(ctx->output, "\n", 1) < 0) {
-				write_error(ctx, ctx->output->stream_errno);
+			if (o_stream_send(ctx->body_output, "\n", 1) < 0) {
+				write_error(ctx,
+					    ctx->body_output->stream_errno);
 				return -1;
 			}
 		}



More information about the dovecot-cvs mailing list