On Wed, Jun 15, 2022 at 10:58:35AM -0400, Wietse Venema wrote:
> Viktor Dukhovni:
> > Release all quarantined mail from "[email protected]" to
> > "[email protected]" (and any other recipients of the same message
> > envelope):
> >
> > # jq -r '
> > first(select(.queue_name == "hold" and
> > (.queue_id | test("^[0-9A-F]+$")) and
> > .sender == "[email protected]" and
> > (.recipients[].address == "[email protected]")))
> > | .queue_id
> > ' | postsuper -H hold
>
> Did you mean:
>
> postqueue -j ... | jq ... | postsuper -H - hold
>
Yes, carelessly left out the leading "postqueue -j" and the "-" from
"postsuper -H". So the correct form is:
# postqueue -j |
jq -r '
first(select(.queue_name == "hold" and
(.queue_id | test("^[0-9A-F]+$")) and
.sender == "[email protected]" and
(.recipients[].address == "[email protected]")))
| .queue_id
' |
postsuper -H -
[ The explicit "hold" queue name is presumably redundant in "postsuper -H" ]
--
Viktor.