notify: pbs context: include nodename in default sendmail author

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

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Lukas Wagner 2024-04-19 16:17:14 +02:00 committed by Thomas Lamprecht
parent c55f37b8c4
commit 803bf7cdc7

View File

@ -82,7 +82,7 @@ impl Context for PBSContext {
} }
fn default_sendmail_author(&self) -> String { fn default_sendmail_author(&self) -> String {
"Proxmox Backup Server".into() format!("Proxmox Backup Server - {}", proxmox_sys::nodename())
} }
fn default_sendmail_from(&self) -> String { fn default_sendmail_from(&self) -> String {