From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 706BD1FF348 for ; Wed, 17 Apr 2024 16:26:09 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 238C9A492; Wed, 17 Apr 2024 16:26:09 +0200 (CEST) Message-ID: <352241d5-bc0d-487f-8ab5-9abad4a39ffe@proxmox.com> Date: Wed, 17 Apr 2024 16:26:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Proxmox Backup Server development discussion , =?UTF-8?Q?Fabian_Gr=C3=BCnbichler?= , Gabriel Goller References: <20240412100631.94218-1-l.wagner@proxmox.com> <20240412100631.94218-15-l.wagner@proxmox.com> <1713339434.lmgwlqq4ff.astroid@yuna.none> Content-Language: de-AT, en-US From: Lukas Wagner In-Reply-To: <1713339434.lmgwlqq4ff.astroid@yuna.none> X-SPAM-LEVEL: Spam detection results: 0 AWL -0.004 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 Subject: Re: [pbs-devel] [PATCH proxmox-backup 14/33] server: notifications: send GC notifications via notification system X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" CgpPbiAgMjAyNC0wNC0xNyAwOTo0NiwgRmFiaWFuIEdyw7xuYmljaGxlciB3cm90ZTo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