(
headers: &BTreeMap<String, String>,
body: &[u8],
)
| 806 | } |
| 807 | |
| 808 | fn extract_text_and_html_bodies( |
| 809 | headers: &BTreeMap<String, String>, |
| 810 | body: &[u8], |
| 811 | ) -> (Option<String>, Option<String>) { |
| 812 | let mut text_body = None; |
| 813 | let mut html_body = None; |
| 814 | extract_bodies_from_entity(headers, body, &mut text_body, &mut html_body); |
| 815 | (text_body, html_body) |
| 816 | } |
| 817 | |
| 818 | fn extract_bodies_from_entity( |
| 819 | headers: &BTreeMap<String, String>, |