[pve-devel] [PATCH v2 proxmox 02/22] notify: include 'type' metadata field for forwarded mails
Lukas Wagner
l.wagner at proxmox.com
Wed Dec 13 17:37:41 CET 2023
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 <l.wagner at proxmox.com>
---
Notes:
New in v2.
proxmox-notify/src/lib.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/proxmox-notify/src/lib.rs b/proxmox-notify/src/lib.rs
index f3ee3ad..ee1e445 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
--
2.39.2
More information about the pve-devel
mailing list