about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-03-25 00:05:14 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-03-25 00:05:14 +0000
commit1773807bcc17e16f8636ec67584f78e85aacf540 (patch)
tree56f00d1498b027f8efc1797af89eaef55c5086c3 /Completion
parente50ffb3f593e65969651d26660a2bd49c128e128 (diff)
downloadzsh-1773807bcc17e16f8636ec67584f78e85aacf540.tar.gz
zsh-1773807bcc17e16f8636ec67584f78e85aacf540.tar.xz
zsh-1773807bcc17e16f8636ec67584f78e85aacf540.zip
Handle @folder for MH in _mailboxes
Diffstat (limited to 'Completion')
-rw-r--r--Completion/User/_mailboxes8
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/User/_mailboxes b/Completion/User/_mailboxes
index 6b3ece850..53f452ce5 100644
--- a/Completion/User/_mailboxes
+++ b/Completion/User/_mailboxes
@@ -118,14 +118,14 @@ _mua_mailboxes() {
       fi
       ;;
     (*:mh:*)
-#     local lastmhbox=???	# Where does this come from?
+      local lastmhbox=$(mhpath)
       if compset -P +; then
 	mbox_names=( "${(@)_mh_cache#$~maildirectory/}" )
-#     elif compset -P @; then
-#	mbox_names=( "${(@)${(@M)_mh_cache:#$~lastmhbox/*}#$~lastmhbox/}" )
+      elif compset -P @; then
+	mbox_names=( "${(@)${(@M)_mh_cache:#$~lastmhbox/*}#$~lastmhbox/}" )
       else
 	mbox_names=( +"${(@)^_mh_cache#$~maildirectory/}"
-#		     @"${(@)^${(@M)_mh_cache:#$~lastmhbox/*}#$~lastmhbox/}"
+		     @"${(@)^${(@M)_mh_cache:#$~lastmhbox/*}#$~lastmhbox/}"
 		     "${_mh_cache[@]}" )
       fi
       ;;