aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2021-03-13 22:07:37 +0100
committerTeddy Wing2021-03-13 22:07:37 +0100
commite1fe076ce2dec2151583a3b26e9d5d942e064cc3 (patch)
tree7501cf686cd0401098d46f25c43e4dcc27490e89 /src
parentcdd1d4a0573b1a871985bcc0022e13eab6a690d0 (diff)
downloadmutt-ottolangy-e1fe076ce2dec2151583a3b26e9d5d942e064cc3.tar.bz2
Remove debug print calls
These print outputs were for help developing and debugging. They're no longer necessary since the program is basically working.
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")
{