diff options
| author | Teddy Wing | 2021-03-09 00:27:50 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2021-03-09 00:27:50 +0100 | 
| commit | 74a4b2f92a5b426497a811c066d5ad1fc8bdd63d (patch) | |
| tree | f1419f04b3e18f1092b1f90c5b478662d283650a | |
| parent | df0704c5958993692319850e809cb0cf4e85589f (diff) | |
| download | mutt-ottolangy-74a4b2f92a5b426497a811c066d5ad1fc8bdd63d.tar.bz2 | |
Remove old email parsing trials
Now that we've worked out how to do this, I can remove my old essays.
| -rw-r--r-- | Cargo.toml | 3 | ||||
| -rw-r--r-- | src/main.rs | 22 | 
2 files changed, 0 insertions, 25 deletions
| @@ -4,7 +4,4 @@ version = "0.0.1"  edition = "2018"  [dependencies] -# email-parser = "0.5.0"  mailparse = "0.13.2" -# email-format = "0.8.0" -# email = "0.0.21" diff --git a/src/main.rs b/src/main.rs index 6d3c6cd..487db2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,29 +1,14 @@ -// use email_parser::email::Email;  use mailparse; -// use email_format::Email; -// use email_format::rfc5322::Parsable; -// use email::rfc5322::Rfc5322Parser;  use std::io::{self, Read};  fn main() { -    // let mut email_input: Vec<u8> = Vec::with_capacity(2048);      let mut email_input: Vec<u8> = Vec::new();      let mut stdin = io::stdin();      stdin.read_to_end(&mut email_input).unwrap(); -    // println!("{}", String::from_utf8(email_input).unwrap()); - -    // email-parser -    // let email = Email::parse(&email_input).unwrap(); -    // println!("{:?}", email.body); - -    // mailparse -    // let email = mailparse::parse_mail(&email_input).unwrap(); -    // let body = email.get_body().unwrap(); -    // println!("{:?}", body);      let email = mailparse::parse_mail(&email_input).unwrap();      if email.subparts.is_empty() {          let body = email.get_body_raw().unwrap(); @@ -41,11 +26,4 @@ fn main() {              }          }      } - -    // email-format -    // let email = Email::parse(&email_input).unwrap().0; -    // print!("{:?}", email.get_body().unwrap()); - -    // email -    // let email = Rfc5322Parser::  } | 
