]> git.proxmox.com Git - proxmox.git/commitdiff
notify: include 'type' metadata field for forwarded mails
authorLukas Wagner <l.wagner@proxmox.com>
Wed, 13 Dec 2023 16:37:41 +0000 (17:37 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 10 Jan 2024 11:38:32 +0000 (12:38 +0100)
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@proxmox.com>
proxmox-notify/src/lib.rs

index f3ee3ade5e8ed3b9d2d303b37efdae54663793ff..ee1e445699d15d7d9566f59efe29e6da76532fe5 100644 (file)
@@ -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