Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 1/4] _postfix: Use mailq to obtain queue id's.
- X-seq: zsh-workers 39109
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 1/4] _postfix: Use mailq to obtain queue id's.
- Date: Sat, 27 Aug 2016 18:44:47 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=64Rhzq3jYu0QY2a9L613JUE+0HI=; b=WBbgyr QkHC8+3CU+M6qqOIG+uHBLWl+jiyk2cRjoTRX/nbHGINbIjWDTiZ9zqP8J1QdC2u X+rTiB6mweSoAxpn+4xyb1qfoej2m/kfw+EKJ87aoY3CRKzqtXpHA9PHhvwYxLiw WnPhCHZgIu8mNr2cTZtuIScCq04I484CO7t18=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-sasl-enc:x-sasl-enc; s=smtpout; bh=64Rhzq3jYu0QY2a9L613JUE+0H I=; b=jNl9TfCQdF1l2i0x4JibKtHj1G4FWxwjL4l/gGuZXWK0buMEK2X18xuw+j 9K5wKfF6MOZLbNNnBdlTvJuZUhQNM2Nvj7mFvj9K9RPQRvvVSlOL7wSrym0/39ew KbXBDqNBGP36/Osp1H/N4FLl9ov5ui2CbrPJ/7/ZPTMMa7BKQ=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
'mailq' is usually in */bin (as opposed to */sbin) and so is more likely
to be in $PATH.
---
Completion/Unix/Command/_postfix | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_postfix b/Completion/Unix/Command/_postfix
index 0ced6c2..6811569 100644
--- a/Completion/Unix/Command/_postfix
+++ b/Completion/Unix/Command/_postfix
@@ -1,7 +1,7 @@
#compdef postsuper
_postfix_queue_id() {
-compadd ${${(M)${(f)"$(postqueue -p)"}:#(#s)([0-9A-F]##)*}/(#s)(#b)([0-9A-F]##)*/$match[1]}
+ compadd "$@" -- ${${(M)${(f)"$(_call_program mailq 'mailq')"}:#(#s)([0-9A-F]##)*}/(#s)(#b)([0-9A-F]##)*/$match[1]}
}
case $service in
Messages sorted by:
Reverse Date,
Date,
Thread,
Author