mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-23 17:01:05 +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
|
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}/**/*(.) )
|
mboxes=( ${~maildirectory}/*(^/) ${~pinedirectory}/**/*(.) )
|
||||||
dirboxes=( ${~maildirectory}/*(/) )
|
dirboxes=( ${~maildirectory}/*(/) )
|
||||||
|
@ -33,8 +33,11 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
[[ -n "$muttboxes" ]] &&
|
[[ -n "$muttboxes" ]] || [[ -d ~/.elm ]] &&
|
||||||
_mailbox_cache=(\! \< \> $muttboxes)
|
_mailbox_cache=(\! \< \> $muttboxes)
|
||||||
|
[[ -n "$mailpath" ]] &&
|
||||||
|
_mailbox_cache=($_mailbox_cache ${mailpath//\?*/})
|
||||||
|
|
||||||
_mailbox_cache=($_mailbox_cache $mboxes $maildirboxes $MHboxes)
|
_mailbox_cache=($_mailbox_cache $mboxes $maildirboxes $MHboxes)
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue