From: Lukas Wagner Date: Wed, 13 Dec 2023 16:37:41 +0000 (+0100) Subject: notify: include 'type' metadata field for forwarded mails X-Git-Url: https://git.proxmox.com/?p=proxmox.git;a=commitdiff_plain;h=39c4d7d85e0e7d2e2294b7339c2c5d36b219a168 notify: include 'type' metadata field for forwarded mails Seems like this was forgotten in the initial version. Without it, it's not really possible to create matchers for forwarded mails. Signed-off-by: Lukas Wagner --- diff --git a/proxmox-notify/src/lib.rs b/proxmox-notify/src/lib.rs index f3ee3ade..ee1e4456 100644 --- a/proxmox-notify/src/lib.rs +++ b/proxmox-notify/src/lib.rs @@ -233,6 +233,7 @@ impl Notification { let mut additional_fields = HashMap::new(); additional_fields.insert("hostname".into(), proxmox_sys::nodename().into()); + additional_fields.insert("type".into(), "system-mail".into()); Ok(Self { // Unfortunately we cannot reasonably infer the severity from the