From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10114 invoked by alias); 27 Aug 2016 18:53:06 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39107 Received: (qmail 21659 invoked from network); 27 Aug 2016 18:53:05 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.28):SA:0(0.0/5.0):. Processed in 0.628806 secs); 27 Aug 2016 18:53:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:in-reply-to:message-id :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=MRA5B WJwM5U+BMW+INtfTMYf61M=; b=0rNLqvAADrvLV8rq15Dp7wGjH78W+iKDu2P1l dKhYJPf0u+fPIp63gK7F0aBEieyHMPkkYbmbKn7MD3Wh65QGMthfhF4kOLhzU43M AxQNwjr8T4IDti1ABy7hXReAL1Dy9QyFq4C6yYj/3LDTpC5pRKj2bwDOev0ESLet r0kyt4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:in-reply-to:message-id :references:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=MRA5 BWJwM5U+BMW+INtfTMYf61M=; b=qTU3rFVsXDCvARPukXviZ+GEr9cDK/Kisy5W MCxMHrND+d23fXUS1S5QiY92J9yqoqBwz31HFkCAh0sGGrNDnF8f+XsBYdYDr/NB patbCqcHyHgFxS/qNzhVLYSLsZBNwJ8t0eaVLZvnxyTNFu2eCZXKzkoj0y9Tm3Lr kXvuvdg= X-Sasl-enc: HKndBqMRGw0f7FRsBgQfB9UC4V9/MMxVT/0s7F4VObb0 1472323512 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: [PATCH 2/4] _postfix: Complete 'postqueue'. Also minor tweaks to 'postsuper'. Date: Sat, 27 Aug 2016 18:44:48 +0000 Message-Id: <1472323490-30345-2-git-send-email-danielsh@fujitsu.shahaf.local2> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1472323490-30345-1-git-send-email-danielsh@fujitsu.shahaf.local2> References: <1472323490-30345-1-git-send-email-danielsh@fujitsu.shahaf.local2> --- Completion/Unix/Command/_postfix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Completion/Unix/Command/_postfix b/Completion/Unix/Command/_postfix index 6811569..2e6a0a0 100644 --- a/Completion/Unix/Command/_postfix +++ b/Completion/Unix/Command/_postfix @@ -1,4 +1,4 @@ -#compdef postsuper +#compdef postqueue postsuper _postfix_queue_id() { compadd "$@" -- ${${(M)${(f)"$(_call_program mailq 'mailq')"}:#(#s)([0-9A-F]##)*}/(#s)(#b)([0-9A-F]##)*/$match[1]} @@ -6,15 +6,25 @@ _postfix_queue_id() { case $service in (postsuper) - _arguments -C \ + _arguments -C -s : \ '-p[purge old tempfiles]' \ '-s[structure check and repair]' \ - '-v[verbose]' \ + '*-v[verbose]' \ '-c[configdir]:config dir:_files -/' \ '-d[delete]:queue id:_postfix_queue_id' \ '-h[hold]:queue id:_postfix_queue_id' \ '-H[release]:queue id:_postfix_queue_id' \ - '-r[requeue]:queue id:_postfix_queue_id' \ + '*-r[requeue]:queue id, or "ALL":_postfix_queue_id' \ '1:queue:(hold incoming active deferred)' ;; + (postqueue) + _arguments -C -s : \ + '*-v[enable verbose logging]' \ + '-c[configdir]:config dir:_files -/' \ + '(-f -i -j -p -s)-f[flush the queue]' \ + '(-f -i -j -p -s)-i[immediately deliver one message]:queue id:_postfix_queue_id' \ + '(-f -i -j -p -s)-j[print the queue in json]' \ + '(-f -i -j -p -s)-p[print the queue in traditional format]' \ + '(-f -i -j -p -s)-s[immediately deliver messages to specified site]:site:_hosts' + ;; esac