aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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"