Diffusion GpgOL f46586d886cd

Fix encoding for some inline pgp mails

Authored by aheinecke on Jun 1 2018, 11:30 AM.

Description

Fix encoding for some inline pgp mails

* src/mail.cpp (Mail::update_body): Use InternetCodepage if
charset is not set by the parser.
* src/mlang-charset.cpp (ansi_charset_to_utf8): Add handling
for a directly provided codepage.
* src/rfc2047parse.c (rfc2047_decode_tokens): Update caller.

For PGP Inline the charset is not detected by the parsecontroller
in that case we now just use the InternetCodepage from OOM.
Tests show that this works properly.