From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 00C8D9B919 for ; Tue, 21 Nov 2023 11:22:11 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DB01C64EA for ; Tue, 21 Nov 2023 11:22:11 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Tue, 21 Nov 2023 11:22:10 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 9700440EA5 for ; Tue, 21 Nov 2023 11:22:10 +0100 (CET) From: Lukas Wagner To: pve-devel@lists.proxmox.com Date: Tue, 21 Nov 2023 11:22:04 +0100 Message-Id: <20231121102208.82219-1-l.wagner@proxmox.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.009 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH v2 guest-common/manager 0/4] vzdump: add 'notification-mode' parameter X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2023 10:22:12 -0000 This patch series adds the 'notification-mode' setting for backup jobs. It allows users to choose between the 'old-style' notifications (mail to configured address, directly via a call to sendmail) or the 'new-style' notification system. notification-mode has three possible values: - legacy-sendmail: Use old system, considering mailto/mailtnotification parameters - notification-system: Use the new system (always sending a notification, irregardless of success/failure. The user is supposed to configure filtering/matching in notification settings) - auto: use old system if mailto is set, or new system if not This should provide a fix/workaround for the users' reports of - double notifications (these happened in case mailto was set to the same address as root@pam) - notifications always being sent, even if 'mailnotification' is set to failure pve-guest-common: Lukas Wagner (1): vzdump: config: add 'notification-mode' param for backup jobs src/PVE/VZDump/Common.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) pve-manager: Lukas Wagner (3): vzdump: support 'notification-mode' parameter ui: backup jobs: add 'notification-mode' selector for backup jobs ui: backup: add 'notification-mode' param for one-shot backup jobs. PVE/VZDump.pm | 95 +++++++++++++++++++++-------------- www/manager6/dc/Backup.js | 33 +++++++++++- www/manager6/window/Backup.js | 25 +++++++++ 3 files changed, 115 insertions(+), 38 deletions(-) Summary over all repositories: 4 files changed, 129 insertions(+), 38 deletions(-) -- murpp v0.4.0