From: markus schnalke Date: Wed, 24 Sep 2014 14:38:06 +0000 (+0200) Subject: mhbuild: Transfer-encode MIME parts of type application always with base64 X-Git-Tag: mmh-0.2-RC1~108 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=ffabbf91237cb3b11f0dcb03334fe8f1e688d3e3;hp=ffabbf91237cb3b11f0dcb03334fe8f1e688d3e3;p=mmh mhbuild: Transfer-encode MIME parts of type application always with base64 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 for discovering and reporting the bug. ---