aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2021-03-14 06:22:23 +0100
committerTeddy Wing2021-03-14 06:22:23 +0100
commit2d84042766d9fd41ebee15acb21bf216e1f5bee2 (patch)
tree29fe1dd9b0be9f35ab673696c7576bd220af8b97 /src
parent1f9b50fe4531f2156f2fd823dc6292d18797cb1a (diff)
downloadmutt-ottolangy-2d84042766d9fd41ebee15acb21bf216e1f5bee2.tar.bz2
get_email_body(): Add TODOs
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index b4d500d..3c218d2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -134,6 +134,9 @@ fn get_email_body(email: &[u8]) -> Result<String, WrapError> {
return Ok(body);
}
+ // TODO: If no plain text part, use html one
+ // TODO: New predicate function for text/plain
+ // TODO: Maybe split into functions
for part in email.subparts {
for header in part.get_headers() {
if header.get_key() == "Content-Type"