Thank you a lot Mr. Venema!!!
Et voilà my little script for un-holding just n (n=100 in the example) and
moving to deferred:
postqueue -p | pcregrep -M "[0-9A-Z]{10}" | awk '{print $1;}' | sed 's/.$//'
| head -100 | postsuper -H -
Thank you again.
-Francesco
-----Messaggio originale-----
Da: [email protected] [mailto:[email protected]]
Per conto di Wietse Venema
Inviato: giovedì 9 giugno 2016 16:14
A: Postfix users <[email protected]>
Oggetto: Re: Un-hold only some messages and not all the queue
[email protected]:
> Hi all.
>
> I have some messages in HOLD queue.
>
> Usually I use "postsuper" for moving messages from DEFERRED to HOLD
> and viceversa.
>
> Is there a way to move to deferred ONLY some (for example 100 of 1000)
> of the messages in HOLD ?
You can specify the -H option multiple times (postsuper -H xxx -H yyy),
which is something that I forgot to document in the manpage.
However, if you have 100+ files to un-hold, I recommend "postsuper -H -"
and have it read the list of queue IDs from stdin (pipe or file).
Wietse
---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus