1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-05 23:11:11 +02:00

13125: evalute muttrc's mailboxes directive in case of backticks.

This commit is contained in:
Clint Adams 2000-11-09 13:27:52 +00:00
parent 559974ad87
commit 89d480f57d
2 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
2000-11-08 Bart Schaefer <schaefer@zsh.org>
2000-11-09 Clint Adams <schizo@debian.org>
* 13140: Src/utils.c: Believe the non-error not-ready return value
from select(), in read_poll().
* 13125: Completion/User/_mailboxes: evaluate the mailboxes
directives in muttrc, in case of backticks.
2000-11-08 Sven Wischnowsky <wischnow@zsh.org>

View file

@ -62,15 +62,15 @@ _mailboxes() {
_mailbox_cache () {
# Depends on $maildirectory and $pinedirectory from _mailboxes!
local i j muttrc="${muttrc:-~/.muttrc}"
local i j _mc_tmp muttrc="${muttrc:-~/.muttrc}"
local -aU dirboxes
typeset -aU -g _mailbox_cache
typeset -aU -g _maildir_cache _mbox_cache _mh_cache _mutt_cache _pine_cache
[[ -f ${~muttrc:-.} ]] &&
_mutt_cache=( ${=${(M)${(f)"$(<${~muttrc})"}:#mailboxes *}#mailboxes *} )
_mc_tmp=${=${(M)${(f)"$(<${~muttrc})"}:#mailboxes *}#mailboxes *} &&
_mutt_cache=( ${=${(Xe)_mc_tmp}} )
_mbox_cache=( ${~maildirectory}/*(^/) )
_pine_cache=( ${~pinedirectory}/**/*(.) )