- test and fix receiving text/html attachment in multipart/mixed situations

They are now preserved as attachment, instead of diving into parsing-html
  and simplifying.

- adapt mime-debugging
This commit is contained in:
holger krekel
2019-12-07 21:07:53 +01:00
parent 1abdf62045
commit 86ace1a4af
5 changed files with 193 additions and 93 deletions

View File

@@ -247,13 +247,13 @@ fn decrypt_if_autocrypt_message<'a>(
// Errors are returned for failures related to decryption of AC-messages.
let encrypted_data_part = match wrapmime::get_autocrypt_mime(mail) {
Err(err) => {
// not a proper autocrypt message, abort and ignore
info!(context, "Not an autocrypt message: {:?}", err);
Err(_) => {
// not an autocrypt mime message, abort and ignore
return Ok(None);
}
Ok(res) => res,
};
info!(context, "Detected Autocrypt-mime message");
decrypt_part(
context,