Index: src/main.rs ================================================================== --- src/main.rs +++ src/main.rs @@ -89,19 +89,19 @@ }; // prepating message header let mut reply: Vec> = vec![]; if let Some(subject) = mail.subject() { - reply.push(format!("Subject: {}", subject).into()); + reply.push(format!("**Subject:** `{}`", subject).into()); } else if let Some(thread) = mail.thread_name() { - reply.push(format!("Thread: {}", thread).into()); + reply.push(format!("**Thread:** `{}`", thread).into()); } if let Some(from) = mail.from() { - reply.push(format!("From: {:?}", from).into()); + reply.push(format!("**From:** `{:?}`", from).into()); } if let Some(sender) = mail.sender() { - reply.push(format!("Sender: {:?}", sender).into()); + reply.push(format!("**Sender:** `{:?}`", sender).into()); } reply.push("".into()); let header_size = reply.join("\n").len() + 1; let html_parts = mail.html_body_count(); @@ -130,11 +130,13 @@ if text.len() < 4096 - header_size { body = text; text_num = 1; } }; + reply.push("```".into()); reply.push(body); + reply.push("```".into()); // and let's coillect all other attachment parts let mut files_to_send = vec![]; /* * let's just skip html parts for now, they just duplicate text?