n_mimetype_classify_file(): tweak/fix message/rfc822 C-T-E detection..
commit68505b1936d8a90a88ea0a2848c0cbad33a71403
authorSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Tue, 22 Aug 2017 13:10:09 +0000 (22 15:10 +0200)
committerSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Tue, 22 Aug 2017 14:04:52 +0000 (22 16:04 +0200)
treeb1dc5b659fde2ca0e6093ddd79e6e9160a2fdfd2
parent2205dc27a87115d1cd79766f999a03282e6bcb12
n_mimetype_classify_file(): tweak/fix message/rfc822 C-T-E detection..

The base of the chosen Content-Transfer-Encoding: depends on
*mime-encoding*, but for message/rfc822 RFC 2046 explicitly
restricts the allowed c-t-e to 7-bit, 8-bit and binary.  Because
of a test too simple we would choose binary for quoted-printable
and base64 instead of falling back to the non-black-box ones.

Of course we need a flat parser which is capable to re-encode all
the possible nodes (parts) of the tree (message).
mime-types.c