summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--mshow.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mshow.c b/mshow.c
index a96d540..06eca89 100644
--- a/mshow.c
+++ b/mshow.c
@@ -462,7 +462,12 @@ extract_mime(int depth, struct message *msg, char *body, size_t bodylen)
 						fwrite(blaze822_orig_header(msg),
 						    1, blaze822_headerlen(msg),
 						    stdout);
-						printf("\n\n");
+						if (blaze822_orig_header(msg)[
+						        blaze822_headerlen(msg)]
+						    == '\r')
+							printf("\r\n\r\n");
+						else
+							printf("\n\n");
 						fwrite(blaze822_body(msg),
 						    1, blaze822_bodylen(msg),
 						    stdout);