Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_swaks completion
- X-seq: zsh-workers 40302
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: _swaks completion
- Date: Sun, 8 Jan 2017 03:30:49 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=EC3/OOIsS3aSD2Q2g1nhb1MuyS0=; b=uKfjqo iUJC0TmOhXUrZaKqjD+sqsbx1SiBZfc7vLSLX/gn/TaJbTXwOyoNnwId+/RRuYhx hIFKgBJwDi4dRyGci+HOckndz5O1y3R7RLM/yOhyA8kfDiVyTSzuOiQjgvXD7rps xtE5mGj6TcYQUF48cu11P62peTnFlvbdL0VBA=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=smtpout; bh=EC3/OOIsS3aSD2Q2g1nhb1MuyS0=; b=WNvFF 2J8Sz446ncLVHalnalLlfRl2y8OcBxUDcgmVU3Xu4gHz0RMOBEamtCfCHC5oz5Ew 5GAkAvWQu/wUtSzz/whP5sg1x86sYrc0j8w4KwQBA4ip+MYU4SOGnfwER8Fxhril dZ+2TV3acBx3Gejkb540WM+C8dC8gCWxStxJEs=
- 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
This doesn't include all options, only a few options that I've used so
far, but I suppose it'd still be better to commit it than not to.
diff --git a/Completion/Unix/Command/_swaks b/Completion/Unix/Command/_swaks
new file mode 100644
index 0000000..7361b08
--- /dev/null
+++ b/Completion/Unix/Command/_swaks
@@ -0,0 +1,40 @@
+#compdef swaks
+
+_arguments \
+ '(-s --server -p --port)'{-s+,--server=}'[target host[:port\]]:host[\:port]:_hosts' \
+ '(-p --port)'{-p+,--port=}'[target port number]:port number:(25 465 587)' \
+ '--copy-routing[derive target host:port from email address domain part]:email address domain part' \
+ '(-t --to)'{-t+,--to=}':envelope recipient(s):_sequence _email_addresses -c' \
+ '(-f --from)'{-f+,--from=}':envelope sender:_email_addresses -c' \
+ '(--ehlo --lhlo -h --helo)'{-h+,--ehlo,--helo,--lhlo}':HELO string:_hosts' \
+ '(-q --quit-after)'{-q+,--quit-after=}'[stop transaction early]:stop point:((
+ CONNECT\:banner BANNER\:banner
+ FIRST-HELO\:first\ HELO FIRST-EHLO\:first\ HELO
+ XCLIENT\:XCLIENT
+ TLS\:TLS\ negotiation
+ HELO\:second\ HELO EHLO\:second\ HELO
+ AUTH\:authentication
+ MAIL\:MAIL\ FROM FROM\:MAIL\ FROM
+ RCPT\:RCPT\ TO TO\:RCPT\ TO
+ ))' \
+ '--protocol=:protocol variant:((
+ SMTP\:HELO\ 25
+ SSMTP\:EHLO\ 465
+ SSMTPA\:EHLO\ 465\ authenticated
+ SMTPS\:HELO\ 465
+ ESMTP\:EHLO\ 25
+ ESMTPA\:EHLO\ 25\ authenticated
+ ESMTPS\:EHLO\ STARTTLS\ 25
+ ESMTPSA\:EHLO\ STARTTLS\ 25\ authenticated
+ ))' \
+ '-tls[TLS required]' \
+ '(-tlsos --tls-optional-strict)'{-tlsos,--tls-optional-strict}'[TLS iff offered by target]' \
+ '(-tlsc --tls-on-connect)'{-tlsc,--tls-on-connect}'[TLS on connect (port 465)]' \
+ '(-tlsp --tls-protocol)'{-tlsp,--tls-protocol=}':TLS protocol:(sslv2 sslv3 tlsv1 tlsv1_1 tlsv1_2)' \
+ '-tls-cipher:OpenSSL cipher string: ' \
+ '--tls-verify[verify TLS certificates]' \
+ '--tls-ca-path=:OpenSSL CAfile or CAdir:_files' \
+ '--tls-get-peer-cert=-:file to write (omit for STDOUT)' \
+ '(-d --data)'{-d+,--data=}'[specify DATA payload]:filename (or string with tokens):_files' \
+ '*'{-ah,--add-header=}'[add headers]:<Header>\: Value' \
+ '*'{-h,--header=}'[replace headers]:<Header>\: Value'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author