From 1773807bcc17e16f8636ec67584f78e85aacf540 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 25 Mar 2001 00:05:14 +0000 Subject: Handle @folder for MH in _mailboxes --- ChangeLog | 4 ++++ Completion/User/_mailboxes | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1206c4d46..6d4ea4ae1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-03-25 Peter Stephenson + + * 13743: Completion/User/_mailboxes: handle @folder in MH. + 2001-03-24 Bart Schaefer * 13740: Completion/User/_mailboxes: Fixes for mh (based on PWS's 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 ;; -- cgit 1.4.1