fix "from" email

This commit is contained in:
Armaël Guéneau 2024-04-10 18:55:45 +02:00
parent fc916670c5
commit e6917b13fb

View file

@ -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 <infracoll>".parse().unwrap())
.from("infracoll <root@infracoll>".parse().unwrap())
.to(email.parse()?)
.subject(format!("restic-alarm: inactive repository {}", repo))
.body(format!(