]> git.proxmox.com Git - proxmox-backup.git/commit
server: notifications: send prune notifications via notification system
authorLukas Wagner <l.wagner@proxmox.com>
Tue, 23 Apr 2024 11:52:07 +0000 (13:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Apr 2024 21:14:46 +0000 (23:14 +0200)
commit3ca03c051f70b587cac6c53cab4afcfe9875b7d6
tree66ac97680cca93670f5152f7f20ffbb78de86534
parent04f35d0eeed44eb759946da1253d807579bda978
server: notifications: send prune notifications via notification system

If the `notification-mode` parameter is set to `legacy-sendmail`, then
we still use the new infrastructure, but don't consider the
notification config and use a hard-coded sendmail endpoint directly.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Gabriel Goller <g.goller@proxmox.com>
Reviewed-by: Gabriel Goller <g.goller@proxmox.com>
Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/proxmox-backup-server.install
src/server/notifications.rs
templates/Makefile
templates/default/prune-err-body.txt.hbs [new file with mode: 0644]
templates/default/prune-err-subject.txt.hbs [new file with mode: 0644]
templates/default/prune-ok-body.txt.hbs [new file with mode: 0644]
templates/default/prune-ok-subject.txt.hbs [new file with mode: 0644]