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 88E351FF15E for ; Mon, 29 Sep 2025 09:36:40 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 220EDB2AA; Mon, 29 Sep 2025 09:36:45 +0200 (CEST) Date: Mon, 29 Sep 2025 09:36:01 +0200 From: Stoiko Ivanov To: Hannes Laimer Message-ID: <20250929093601.4adcb54d@rosa.proxmox.com> In-Reply-To: <20250924071314.41917-1-h.laimer@proxmox.com> References: <20250924071314.41917-1-h.laimer@proxmox.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1759131352108 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.073 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: [pmg-devel] applied-series: [PATCH pmg-api/pmg-gui v3 0/2] fix #3450: batch deletion/delivery for postfix queue 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: , Cc: pmg-devel@lists.proxmox.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pmg-devel-bounces@lists.proxmox.com Sender: "pmg-devel" Thanks for the iteration and the testing! applied-both patches with Maximiliano's T-b. For pmg-api I added a follow-up to register the postfix-queue-id as a format, and use the '-list' derivative format for your api-calls. (this allows for elements to also be split by ',' and '\0' IIRC, and adds a bit more of context and semantics. for the gui - I tried to refactor a few common places in: https://lore.proxmox.com/pmg-devel/20250929073421.16955-1-s.ivanov@proxmox.com/T/#u On Wed, 24 Sep 2025 09:13:12 +0200 Hannes Laimer wrote: > Adds a new POST endpoint that accepts both a type(delete/deliver) and a > list of id's. This is also how batch operations are done for quarantine. > > https://bugzilla.proxmox.com/show_bug.cgi?id=3450 > > v3, thanks @Thomas: > - code cleanup > - add more context to commit messages > - remove not needed checks when passing a list of ids to `postsuper -d -` > - ui: use INFO instead of WARNING confirm popup, same as we do for quarantine > - ui: no confirmation for flush of single mails, so existing behaviour of the > button does not change > > v2: > - instead of 'filter' use the IDs directly > - UI now doesn't have extra buttons, the existing Remove and Flush ones > will just work with either one or multiple selected items > > pmg-api: > > Hannes Laimer (1): > fix #3450: api: queue: add POST endpoint for batch deletion/delivery > > src/PMG/API2/Postfix.pm | 40 ++++++++++++++++++++++++++++++++++++++++ > src/PMG/Postfix.pm | 24 ++++++++++++++++++++++++ > 2 files changed, 64 insertions(+) > > > pmg-gui: > > Hannes Laimer (1): > fix #3450: ui: queue: multi-select for item deletion/delivery > > js/PostfixMailQueue.js | 100 ++++++++++++++++++++++++++++------------- > 1 file changed, 68 insertions(+), 32 deletions(-) > > > Summary over all repositories: > 3 files changed, 132 insertions(+), 32 deletions(-) > _______________________________________________ pmg-devel mailing list pmg-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel