[pmg-devel] applied-series: [PATCH pmg-api/pmg-gui v3 0/2] fix #3450: batch deletion/delivery for postfix queue

Stoiko Ivanov s.ivanov at proxmox.com
Mon Sep 29 09:36:01 CEST 2025


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 <h.laimer at proxmox.com> 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(-)
> 





More information about the pmg-devel mailing list