mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 508371253ca23a7045ffe458177aeaa3321f966d
parent 7635bc4657f6db064a681f28b3354744ed57e5cb
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Fri, 26 May 2017 23:27:48 +0200

mshow: try to keep CRLF intact for -r

Diffstat:
mshow.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 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);