From f46e37a3dc73ea3be7d0a087cf19aa7abd05374a Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Fri, 24 Dec 2004 19:50:15 +0000 Subject: * 20634: Completion/Unix/Command/_postfix: completion for postsuper. --- Completion/Unix/Command/_postfix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Completion/Unix/Command/_postfix (limited to 'Completion') diff --git a/Completion/Unix/Command/_postfix b/Completion/Unix/Command/_postfix new file mode 100644 index 000000000..0ced6c24a --- /dev/null +++ b/Completion/Unix/Command/_postfix @@ -0,0 +1,20 @@ +#compdef postsuper + +_postfix_queue_id() { +compadd ${${(M)${(f)"$(postqueue -p)"}:#(#s)([0-9A-F]##)*}/(#s)(#b)([0-9A-F]##)*/$match[1]} +} + +case $service in + (postsuper) + _arguments -C \ + '-p[purge old tempfiles]' \ + '-s[structure check and repair]' \ + '-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' \ + '1:queue:(hold incoming active deferred)' + ;; +esac -- cgit 1.4.1