mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-18 15:21:16 +02:00
zsh-workers/7961
This commit is contained in:
parent
6512a9f720
commit
d6ed401f60
1 changed files with 5 additions and 2 deletions
|
@ -12,7 +12,7 @@ local maildirectory="${maildirectory:-~/Mail}"
|
|||
|
||||
if (( ! $+_mailbox_cache )) then
|
||||
|
||||
[[ -f "${~muttrc}" ]] && muttboxes=( ${$(grep mailboxes ${~muttrc})[2,-1]} )
|
||||
test ${~muttrc} && [[ -f ${~muttrc} ]] && muttboxes=( ${$(grep mailboxes ${~muttrc})[2,-1]} )
|
||||
|
||||
mboxes=( ${~maildirectory}/*(^/) ${~pinedirectory}/**/*(.) )
|
||||
dirboxes=( ${~maildirectory}/*(/) )
|
||||
|
@ -33,8 +33,11 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
[[ -n "$muttboxes" ]] &&
|
||||
[[ -n "$muttboxes" ]] || [[ -d ~/.elm ]] &&
|
||||
_mailbox_cache=(\! \< \> $muttboxes)
|
||||
[[ -n "$mailpath" ]] &&
|
||||
_mailbox_cache=($_mailbox_cache ${mailpath//\?*/})
|
||||
|
||||
_mailbox_cache=($_mailbox_cache $mboxes $maildirboxes $MHboxes)
|
||||
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue