- 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

@@ -47,12 +47,10 @@ pub fn dc_receive_imf(
server_uid,
);
/*
if std::env::var(crate::DCC_MIME_DEBUG).is_ok() {
if std::env::var(crate::DCC_MIME_DEBUG).unwrap_or_default() == "2" {
info!(context, "dc_receive_imf: incoming message mime-body:");
println!("{}", String::from_utf8_lossy(imf_raw));
}
*/
let mime_parser = MimeParser::from_bytes(context, imf_raw);
let mut mime_parser = if let Err(err) = mime_parser {