From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 05EC71FF168 for ; Tue, 26 Nov 2024 10:21:03 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A23632AF3C; Tue, 26 Nov 2024 10:21:02 +0100 (CET) From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= To: pbs-devel@lists.proxmox.com Date: Tue, 26 Nov 2024 10:20:29 +0100 Message-Id: <20241126092029.207319-1-f.gruenbichler@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241125174012.678523-1-c.ebner@proxmox.com> References: <20241125174012.678523-1-c.ebner@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.049 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [sync.rs] Subject: [pbs-devel] [PATCH proxmox-backup] (List)SyncDirection: extract match check into impl fn 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" aW4gY2FzZSB3ZSBhZGQgYW5vdGhlciBkaXJlY3Rpb24gb3IgYW5vdGhlciBjYWxsIHNpdGUsIGRv aW5nIGl0IHdpdGhvdXQgYQp3aWxkY2FyZCBtYXRjaCBhcm0gc2VlbXMgY2xlYW5lci4KClNpZ25l ZC1vZmYtYnk6IEZhYmlhbiBHcsO8bmJpY2hsZXIgPGYuZ3J1ZW5iaWNobGVyQHByb3htb3guY29t PgotLS0Kc21hbGwgY2xlYW51cCBhcyBwb3RlbnRpYWwgZm9sbG93LXVwCgogc3JjL2FwaTIvYWRt aW4vc3luYy5ycyAgfCAxNiArKysrKysrKysrKystLS0tCiBzcmMvYXBpMi9jb25maWcvc3luYy5y cyB8IDExICsrKy0tLS0tLS0tCiAyIGZpbGVzIGNoYW5nZWQsIDE1IGluc2VydGlvbnMoKyksIDEy IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL3NyYy9hcGkyL2FkbWluL3N5bmMucnMgYi9zcmMv YXBpMi9hZG1pbi9zeW5jLnJzCmluZGV4IDk2NWJlOGQwNi4uMDg5ZTZmNTBkIDEwMDY0NAotLS0g YS9zcmMvYXBpMi9hZG1pbi9zeW5jLnJzCisrKyBiL3NyYy9hcGkyL2FkbWluL3N5bmMucnMKQEAg LTQ3LDYgKzQ3LDE2IEBAIGltcGwgRnJvbTxTeW5jRGlyZWN0aW9uPiBmb3IgTGlzdFN5bmNEaXJl Y3Rpb24gewogICAgIH0KIH0KIAoraW1wbCBMaXN0U3luY0RpcmVjdGlvbiB7CisgICAgLy8vIENo ZWNrcyB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ICAg ICAgICAgICAgICBfID0+IHt9Ci0gICAgICAgICAgICB9Ci0gICAgICAgICAgICBjaGVja19zeW5j X2pvYl9yZWFkX2FjY2VzcygmdXNlcl9pbmZvLCAmYXV0aF9pZCwgc3luY19qb2IpCisgICAgICAg ICAgICBzeW5jX2RpcmVjdGlvbi5tYXRjaGVzKHN5bmNfam9iLnN5bmNfZGlyZWN0aW9uLnVud3Jh cF9vcl9kZWZhdWx0KCkpCisgICAgICAgICAgICAgICAgJiYgY2hlY2tfc3luY19qb2JfcmVhZF9h Y2Nlc3MoJnVzZXJfaW5mbywgJmF1dGhfaWQsIHN5bmNfam9iKQogICAgICAgICB9KQogICAgICAg ICAuY29sbGVjdCgpOwogICAgIE9rKGxpc3QpCi0tIAoyLjM5LjUKCgoKX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcGJzLWRldmVsIG1haWxpbmcgbGlzdApw YnMtZGV2ZWxAbGlzdHMucHJveG1veC5jb20KaHR0cHM6Ly9saXN0cy5wcm94bW94LmNvbS9jZ2kt YmluL21haWxtYW4vbGlzdGluZm8vcGJzLWRldmVsCg==