diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-22 12:35:20 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-22 12:35:20 +0000 |
commit | d139ae56432a82a3dbe11f4be89ba7d886f2c177 (patch) | |
tree | f2cd4d874fe13fe923490dd69bd92a0fb3314381 /Completion/User/_mailboxes | |
parent | fdb8d5b45550835c00f40591e6ee5b6f6f6fd868 (diff) | |
download | zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.tar.gz zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.tar.xz zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.zip |
zsh-3.1.6-pws-5 zsh-3.1.6-pws-5
Diffstat (limited to 'Completion/User/_mailboxes')
-rw-r--r-- | Completion/User/_mailboxes | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Completion/User/_mailboxes b/Completion/User/_mailboxes index eee6c6f35..08dbec816 100644 --- a/Completion/User/_mailboxes +++ b/Completion/User/_mailboxes @@ -12,7 +12,7 @@ local maildirectory="${maildirectory:-~/Mail}" if (( ! $+_mailbox_cache )) then -test ${~muttrc} && [[ -f ${~muttrc} ]] && muttboxes=( ${$(grep mailboxes ${~muttrc})[2,-1]} ) +[[ -f "${~muttrc}" ]] && muttboxes=( ${$(grep mailboxes ${~muttrc})[2,-1]} ) mboxes=( ${~maildirectory}/*(^/) ${~pinedirectory}/**/*(.) ) dirboxes=( ${~maildirectory}/*(/) ) @@ -33,11 +33,8 @@ do fi done -[[ -n "$muttboxes" ]] || [[ -d ~/.elm ]] && +[[ -n "$muttboxes" ]] && _mailbox_cache=(\! \< \> $muttboxes) -[[ -n "$mailpath" ]] && - _mailbox_cache=($_mailbox_cache ${mailpath//\?*/}) - _mailbox_cache=($_mailbox_cache $mboxes $maildirboxes $MHboxes) fi |