zsh-workers
 help / color / mirror / code / Atom feed
* _swaks completion
@ 2017-01-08  3:30 Daniel Shahaf
  2017-01-08 22:24 ` Axel Beckert
  2017-01-08 22:35 ` Axel Beckert
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Shahaf @ 2017-01-08  3:30 UTC (permalink / raw)
  To: zsh-workers

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'


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: _swaks completion
  2017-01-08  3:30 _swaks completion Daniel Shahaf
@ 2017-01-08 22:24 ` Axel Beckert
  2017-01-08 22:35 ` Axel Beckert
  1 sibling, 0 replies; 3+ messages in thread
From: Axel Beckert @ 2017-01-08 22:24 UTC (permalink / raw)
  To: zsh-workers

Hi Daniel,

On Sun, Jan 08, 2017 at 03:30:49AM +0000, Daniel Shahaf wrote:
> 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.

Yay! Much appreciated!

		Kind regards, Axel (a long time swaks user :-)
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@deuxchevaux.org  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: _swaks completion
  2017-01-08  3:30 _swaks completion Daniel Shahaf
  2017-01-08 22:24 ` Axel Beckert
@ 2017-01-08 22:35 ` Axel Beckert
  1 sibling, 0 replies; 3+ messages in thread
From: Axel Beckert @ 2017-01-08 22:35 UTC (permalink / raw)
  To: zsh-workers

Hi Daniel,

On Sun, Jan 08, 2017 at 03:30:49AM +0000, Daniel Shahaf wrote:
> +      TLS\:TLS\ negotiation 
                              ^

There seems to an unnecessary trailing whitespace at the end of this
line.

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@deuxchevaux.org  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-08 22:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-08  3:30 _swaks completion Daniel Shahaf
2017-01-08 22:24 ` Axel Beckert
2017-01-08 22:35 ` Axel Beckert

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).