Index: src/mail.rs ================================================================== --- src/mail.rs +++ src/mail.rs @@ -186,20 +186,21 @@ */ if body.is_empty() && text_parts > 0 { let text = mail.body_text(0) .context("Failed to extract text from message")? .replace("\r\n", "\n"); + let text = validate(&text).stack()?; // 6: // - (headers) // - (mail text) // - 6: if text.len() < 4096 - ( reply.len() + 6 ) { - body = text; + body = text.to_string(); text_num = 1; } }; - let msg = format!("{}{}", reply, validate(&body).stack()?); + let msg = format!("{}{}", reply, body); // and let's collect all other attachment parts let mut files_to_send = vec![]; /* * let's just skip html parts for now, they just duplicate text?