test: Add test showing notmuch corrupts a part with a CRLF pair in it
authorCarl Worth <cworth@cworth.org>
Tue, 31 May 2011 22:39:26 +0000 (15:39 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 31 May 2011 22:39:26 +0000 (15:39 -0700)
commitc6b49ae752e642d779941a63bc65d5107e7010f1
treefa39a8d0b9b68ff22494f1772af49ab5e9ea68fd
parent6ca7d73239091e8bff7cb05b145c6696d7b5d79a
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.
test/multipart