diff -urp tin-2.3.1_r6/src/rfc2045.c tin-2.3.1_r7/src/rfc2045.c --- tin-2.3.1_r6/src/rfc2045.c 2014-12-24 09:41:24.000000000 +0100 +++ tin-2.3.1_r7/src/rfc2045.c 2015-08-23 10:10:17.000000000 +0200 @@ -283,6 +283,11 @@ put_rest( } if (c == '\n') { /* + * Look for CRLF spread over two lines. + */ + if (put_chars && (*line)[put_chars -1] == '\r') + --put_chars; + /* * FIXME: Adding a newline may be not correct. At least it may * be not what the author of that article intended. * Unfortunately, a newline is expected at the end of a line by