1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 05:53:52 +01:00

Handle @folder for MH in _mailboxes

This commit is contained in:
Peter Stephenson 2001-03-25 00:05:14 +00:00
parent e50ffb3f59
commit 1773807bcc
2 changed files with 8 additions and 4 deletions

@ -1,3 +1,7 @@
2001-03-25 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* 13743: Completion/User/_mailboxes: handle @folder in MH.
2001-03-24 Bart Schaefer <schaefer@zsh.org>
* 13740: Completion/User/_mailboxes: Fixes for mh (based on PWS's

@ -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
;;