about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Completion/Unix/Command/_mh6
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8533c498b..b215dd532 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-12-09  Oliver Kiddle  <opk@zsh.org>
 
+	* unposted: Completion/Unix/Command/_mh: better completion for sortm
+
 	* unposted: configure.ac: require autoconf 2.53b
 
 2005-12-09  Clint Adams  <clint@zsh.org>
diff --git a/Completion/Unix/Command/_mh b/Completion/Unix/Command/_mh
index 5a9348069..69f6c2da2 100644
--- a/Completion/Unix/Command/_mh
+++ b/Completion/Unix/Command/_mh
@@ -56,6 +56,12 @@ 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 [[ "$prev" = -textfield ]]; then
+  _wanted -C "$prev" -x headers expl header compadd -M 'm:{a-zA-Z}={A-Za-z}' \
+      Subject From To cc
+elif [[ "$prev" = -datefield ]]; then
+  _wanted -C "$prev" -x headers expl header compadd -M 'm:{a-zA-Z}={A-Za-z}' \
+      Delivery-Date
 elif [[ $service = mhparam ]]; then
   _wanted parameters expl 'MH parameter' compadd - \
     ${${(f)"$(mhparam -all)"}%%:*}