[pve-devel] [PATCH proxmox 10/19] notify: pbs context: include nodename in default sendmail author

Lukas Wagner l.wagner at proxmox.com
Tue Apr 9 15:25:46 CEST 2024


The old notification stack in proxmox-backup includes the nodename, so
we include it here as well.

Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 proxmox-notify/src/context/pbs.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-notify/src/context/pbs.rs b/proxmox-notify/src/context/pbs.rs
index 70e993f..299f685 100644
--- a/proxmox-notify/src/context/pbs.rs
+++ b/proxmox-notify/src/context/pbs.rs
@@ -82,7 +82,7 @@ impl Context for PBSContext {
     }
 
     fn default_sendmail_author(&self) -> String {
-        "Proxmox Backup Server".into()
+        format!("Proxmox Backup Server - {}", proxmox_sys::nodename())
     }
 
     fn default_sendmail_from(&self) -> String {
-- 
2.39.2




More information about the pve-devel mailing list