]> git.notmuchmail.org Git - notmuch/commit
notmuch show: Don't do text conversions for non-text parts
authorCarl Worth <cworth@cworth.org>
Tue, 31 May 2011 23:13:21 +0000 (16:13 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 31 May 2011 23:13:21 +0000 (16:13 -0700)
commit10a48e0566db1566e6c0221b9f9927ac123a0c1f
treec57f83d7283f0770d9ea32b4da68b5c607b31052
parentc6b49ae752e642d779941a63bc65d5107e7010f1
notmuch show: Don't do text conversions for non-text parts

This fixes the recently-added test case (in test/multipart)
demonstrating corruption of binary parts that happen to contain CRLF
pairs.

We restore the original code from show_one_part_content to
format_part_content_raw. Then, for good measure, we rename
show_part_content to the more descriptive show_text_part_content and
add an internal error if it is ever called with a non-text part.
notmuch-show.c