From 50f372fe7e5d88f6c42ced527eb2190db8e44c24 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Mon, 2 Oct 2023 09:40:49 +0200 Subject: [PATCH] notify context: fix 'default_sendmail_from' context method The name of the configuration option in datacenter.cfg is `email_from` and not `mail_from`. Signed-off-by: Lukas Wagner --- pve-rs/src/notify_context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pve-rs/src/notify_context.rs b/pve-rs/src/notify_context.rs index 48623fd..3cf3e18 100644 --- a/pve-rs/src/notify_context.rs +++ b/pve-rs/src/notify_context.rs @@ -58,7 +58,7 @@ impl Context for PVEContext { fn default_sendmail_from(&self) -> String { let content = attempt_file_read("/etc/pve/datacenter.cfg"); content - .and_then(|content| lookup_datacenter_config_key(&content, "mail_from")) + .and_then(|content| lookup_datacenter_config_key(&content, "email_from")) .unwrap_or_else(|| String::from("root")) } -- 2.39.5