mhbuild: Transfer-encode MIME parts of type application always with base64
authormarkus schnalke <meillo@marmaro.de>
Wed, 24 Sep 2014 14:38:06 +0000 (16:38 +0200)
committermarkus schnalke <meillo@marmaro.de>
Wed, 24 Sep 2014 14:38:06 +0000 (16:38 +0200)
Application files likely contain NUL bytes. scan_content(), however, uses
stdio to check the files to attach. NUL bytes break these checks. Instead
of improving the checks to allow e.g. application/x-tex files to be sent
using 7bit or QP encoding, it was chosen to take the easy way and send
application files base64-encoded.

This solves a bug when attaching tar files. (tar files begin with a
header mostly filled with NUL bytes). Thanks to <philipp@bureaucracy.de>
for discovering and reporting the bug.


No differences found