aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-05-26 23:27:48 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-05-26 23:27:48 +0200
commit508371253ca23a7045ffe458177aeaa3321f966d (patch)
tree9518b3be1c44e3cab0d6e8fca0c4b99c14cb2223
parent7635bc4657f6db064a681f28b3354744ed57e5cb (diff)
downloadmblaze-508371253ca23a7045ffe458177aeaa3321f966d.tar.gz
mshow: try to keep CRLF intact for -r
-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);