mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-11-04 07:21:06 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			530 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			530 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#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
 |