about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-03-22 12:30:33 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-03-22 12:30:33 +0000
commit2849199f3ce96db38cb9003c977b5b7cc783c86a (patch)
tree4a04740237b66e69edcea8eb2371d18609be3d5f
parentdb0e5c2d8bd8c7dea33b70a3b71df59f29c25b6a (diff)
downloadzsh-2849199f3ce96db38cb9003c977b5b7cc783c86a.tar.gz
zsh-2849199f3ce96db38cb9003c977b5b7cc783c86a.tar.xz
zsh-2849199f3ce96db38cb9003c977b5b7cc783c86a.zip
Some tweaks for nmh in _mh
-rw-r--r--ChangeLog4
-rw-r--r--Completion/User/_mh7
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 35b7c03c8..53cd7f1c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-22  Peter Stephenson  <pws@csr.com>
+
+	* 13676: Completion/User/_mh: some tweaks for nmh.
+
 2001-03-22  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 13706: Src/exec.c: skip redirections in execpline2() when
diff --git a/Completion/User/_mh b/Completion/User/_mh
index 630ad11cf..76ef0fa5c 100644
--- a/Completion/User/_mh
+++ b/Completion/User/_mh
@@ -1,4 +1,4 @@
-#compdef folder folders comp inc mark refile repl scan show next prev rmm pick whom mhn mhpath
+#compdef folder folders comp inc mark refile repl scan show next prev rmm pick whom mhn mhpath mhlist mhstore mhshow mhparam mhmail
 
 # Completion for all possible MH commands.
 
@@ -50,6 +50,11 @@ elif [[ "$prev" = -(no|)cc ]]; then
   _wanted -C "$prev" values expl 'CC address' compadd all to cc me
 elif [[ "$prev" = -[rw]cache ]]; then
   _wanted -C "$prev" values expl cache compadd public private never ask
+elif [[ $service = mhparam ]]; then
+  _wanted parameters expl 'MH parameter' compadd - \
+    ${${(f)"$(mhparam -all)"}%%:*}
+elif [[ $service = mhmail ]]; then
+  _user_at_host
 else
   # Generate sequences.
   local foldnam folddir f ret