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: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org]
Per conto di Wietse Venema
Inviato: giovedì 9 giugno 2016 16:14
A: Postfix users <postfix-users@postfix.org>
Oggetto: Re: Un-hold only some messages and not all the queue

i...@itrezero.it:
> 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

Reply via email to