[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c, 1.94.2.1, 1.94.2.2

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


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

Modified Files:
      Tag: branch_1_0
	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.94.2.1
retrieving revision 1.94.2.2
diff -u -d -r1.94.2.1 -r1.94.2.2
--- mbox-save.c	17 Jun 2006 18:00:34 -0000	1.94.2.1
+++ mbox-save.c	2 Aug 2006 00:16:17 -0000	1.94.2.2
@@ -457,8 +457,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];
@@ -470,8 +471,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