mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
- 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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user