aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 6f2a342..c5e65d7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -32,11 +32,9 @@ fn run() -> Result<(), Box<dyn Error>> {
stdin.read_to_end(&mut email_input)?;
let body = get_email_body(&email_input)?;
- print!("{}", body);
let lang_info = whatlang::detect(&body)
.ok_or("unable to detect language")?;
- println!("{:?}", lang_info);
let attribution_config = if lang_info.lang() == Lang::Fra {
ATTRIBUTION_FR
@@ -59,8 +57,6 @@ fn get_email_body(email: &[u8]) -> Result<String, Box<dyn Error>> {
} else {
for part in email.subparts {
for header in part.get_headers() {
- println!("{}: {}", header.get_key(), header.get_value());
-
if header.get_key() == "Content-Type"
&& header.get_value().starts_with("text/plain")
{