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 D909F1FF187 for ; Mon, 22 Sep 2025 10:05:14 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2A5D714038; Mon, 22 Sep 2025 10:05:44 +0200 (CEST) From: Dominik Csapak To: pmg-devel@lists.proxmox.com Date: Mon, 22 Sep 2025 10:05:01 +0200 Message-ID: <20250922080509.737332-3-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250922080509.737332-1-d.csapak@proxmox.com> References: <20250922080509.737332-1-d.csapak@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.026 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 Subject: [pmg-devel] [PATCH pmg-gui 1/1] spam quarantine: add columsn for positive/negative spam score matches X-BeenThere: pmg-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Mail Gateway development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pmg-devel-bounces@lists.proxmox.com Sender: "pmg-devel" The api returns the sum of spam matches individually for positive and negative ones, so add two new columns that show them. They each take up 50 pixels, so increase the width of the list by 100 pixel so we have the same space for the other columns here. Signed-off-by: Dominik Csapak --- js/SpamQuarantine.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/js/SpamQuarantine.js b/js/SpamQuarantine.js index 1844022..93c411d 100644 --- a/js/SpamQuarantine.js +++ b/js/SpamQuarantine.js @@ -153,7 +153,7 @@ Ext.define('PMG.SpamQuarantine', { selModel: 'checkboxmodel', reference: 'list', region: 'west', - width: 500, + width: 600, split: true, collapsible: false, store: { @@ -181,6 +181,20 @@ Ext.define('PMG.SpamQuarantine', { align: 'right', width: 70, }, + { + header: '+', + dataIndex: 'score-positive', + align: 'right', + renderer: (value) => (value ?? 0).toFixed(2), + width: 50, + }, + { + header: '-', + dataIndex: 'score-negative', + align: 'right', + renderer: (value) => (value ?? 0).toFixed(2), + width: 50, + }, { header: gettext('Size') + ' (KB)', renderer: (v) => Ext.Number.toFixed(v / 1024, 0), -- 2.47.3 _______________________________________________ pmg-devel mailing list pmg-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel