diff options
author | Clint Adams <clint@users.sourceforge.net> | 2000-06-22 02:37:45 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2000-06-22 02:37:45 +0000 |
commit | e164618de256b765a191caa2cc0c2c6476f46abb (patch) | |
tree | 6c5db714353c9cd9a06c855b08fe03a269100509 /Completion | |
parent | ec7fc020715eb008ab75164197b4427dfdf8b2e9 (diff) | |
download | zsh-e164618de256b765a191caa2cc0c2c6476f46abb.tar.gz zsh-e164618de256b765a191caa2cc0c2c6476f46abb.tar.xz zsh-e164618de256b765a191caa2cc0c2c6476f46abb.zip |
12024: handle multiple mailboxes lines in muttrc
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/User/_mailboxes | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/User/_mailboxes b/Completion/User/_mailboxes index e2b4b5289..fb00719a3 100644 --- a/Completion/User/_mailboxes +++ b/Completion/User/_mailboxes @@ -65,7 +65,8 @@ _mailbox_cache () { [[ -f ${~muttrc:-.} ]] && - _mutt_cache=( ${$(grep mailboxes ${~muttrc})[2,-1]} ) + _mutt_cache=( ${${(M)${(f)"$(<${~muttrc})"}:#mailboxes *}#mailboxes *} ) + _mbox_cache=( ${~maildirectory}/*(^/) ) _pine_cache=( ${~pinedirectory}/**/*(.) ) |