From: Erik Fastermann <e.fastermann@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Erik Fastermann <e.fastermann@proxmox.com>
Subject: [PATCH pve-manager v2 2/3] fix #5713: vzdump: add notification-mode none
Date: Wed, 13 May 2026 12:31:08 +0200 [thread overview]
Message-ID: <20260513103109.122977-3-e.fastermann@proxmox.com> (raw)
In-Reply-To: <20260513103109.122977-1-e.fastermann@proxmox.com>
Optionally disable sending notification mails with the new option
none for notification-mode in vzdump.
This can be useful if you want to disable sending notifications for a
specific backup job and not change the global notification settings or
use the deprecated legacy sendmail with an empty address.
Signed-off-by: Erik Fastermann <e.fastermann@proxmox.com>
---
PVE/VZDump.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index defe9e0a..f51f87c1 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -496,6 +496,8 @@ sub send_notification {
my $policy = $opts->{mailnotification} // 'always';
my $mode = $opts->{"notification-mode"} // 'auto';
+ return if $mode eq 'none';
+
sanitize_task_list($tasklist);
my ($error_count, $total_size) = aggregate_task_statistics($tasklist);
--
2.47.3
next prev parent reply other threads:[~2026-05-13 10:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 10:31 [PATCH guest-common/manager v2 0/3] fix #5713: vzdump: add notification-mode none Erik Fastermann
2026-05-13 10:31 ` [PATCH pve-guest-common v2 1/3] " Erik Fastermann
2026-05-13 10:31 ` Erik Fastermann [this message]
2026-05-13 10:31 ` [PATCH pve-manager v2 3/3] ui: " Erik Fastermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260513103109.122977-3-e.fastermann@proxmox.com \
--to=e.fastermann@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox