On Wed, Jun 15, 2022 at 10:58:35AM -0400, Wietse Venema wrote:

> Viktor Dukhovni:
> > Release all quarantined mail from "harml...@example.net" to
> > "artl...@example.org" (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 == "harml...@example.net" and
> >                      (.recipients[].address == "artl...@example.org")))
> >         | .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 == "harml...@example.net" and
                      (.recipients[].address == "artl...@example.org")))
         | .queue_id
         ' |
       postsuper -H -

[ The explicit "hold" queue name is presumably redundant in "postsuper -H" ]

-- 
    Viktor.

Reply via email to