From e6917b13fb134b246fb797b936da886b4f767fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C3=ABl=20Gu=C3=A9neau?= Date: Wed, 10 Apr 2024 18:55:45 +0200 Subject: [PATCH] fix "from" email --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7a6c049..e999fbf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,7 +89,7 @@ fn is_alert_needed( async fn send_email(email: &str, repo: &str, inactive: Duration) -> eyre::Result<()> { use lettre::{AsyncSendmailTransport, AsyncTransport, Message}; let email = Message::builder() - .from("infracoll ".parse().unwrap()) + .from("infracoll ".parse().unwrap()) .to(email.parse()?) .subject(format!("restic-alarm: inactive repository {}", repo)) .body(format!(