From: Carl Worth Date: Tue, 31 May 2011 22:39:26 +0000 (-0700) Subject: test: Add test showing notmuch corrupts a part with a CRLF pair in it X-Git-Tag: debian/0.6_254~84 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=c6b49ae752e642d779941a63bc65d5107e7010f1;hp=c6b49ae752e642d779941a63bc65d5107e7010f1;p=notmuch test: Add test showing notmuch corrupts a part with a CRLF pair in it Since commit 2f8871df6ea3c0b44f85a0fc1b4f58a6b70b0a0e notmuch has been using a function (show_part_content) originally written only for text parts to save all MIME parts. The problem with this is that this function converts CRLF pairs to LF only and optionally converts to UTF-8 encoding. These two conversions have the potential to corrupt binary data when passed through the function. This test demonstrates that corruption, and so fails currently, until we fix the bug. ---