diff src/lib-index/mbox/mbox-rewrite.c @ 369:d037915978ca HEAD

message_parse_header() now calls the function with empty name/value at end of headers. we use this feature with mbox to allow usage of Content-Length header field.
author Timo Sirainen <tss@iki.fi>
date Sun, 06 Oct 2002 12:20:20 +0300
parents cb405d2f5fd5
children b0a62e264b22
line wrap: on
line diff
--- a/src/lib-index/mbox/mbox-rewrite.c	Sun Oct 06 10:41:06 2002 +0300
+++ b/src/lib-index/mbox/mbox-rewrite.c	Sun Oct 06 12:20:20 2002 +0300
@@ -254,7 +254,7 @@
 			ctx->ximapbase_found = TRUE;
 			(void)mbox_write_ximapbase(ctx);
 		}
-	} else {
+	} else if (name_len > 0) {
 		/* save this header */
 		(void)io_buffer_send(ctx->outbuf, name, name_len);
 		(void)io_buffer_send(ctx->outbuf, ": ", 2);