1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00
zsh/Completion/Unix/Command/_mail

10 lines
432 B
Plaintext

#compdef mail mailx=mail Mail=mail mush zmail nail=mail
_arguments -s \
'(-f -u)*-b[specify a BCC recipient]:BCC recipient:->userhost' \
'(-f -u)*-c[specify a CC recipient]:CC recipient:->userhost' \
'(-b -c -u -s *)-f+[specify mail folder]:mailbox:_mailboxes' \
'(-f -u)-s+[specify a subject]:subject:' \
"(-b -c -f -s *)-u+[read specified user's mail]:user:_users" \
"(-f -u)*:recipient:_email_addresses -n $service"