#autoload local expl local -a notmuch_addr local notmuch_addr_lastmod local lastmod=( ${(f)"$(notmuch count --lastmod)"} ) if ! _retrieve_cache notmuch-addresses || [[ $lastmod != $notmuch_addr_lastmod ]]; then notmuch_addr_lastmod=$lastmod notmuch_addr=( ${(f)"$(notmuch address --deduplicate=address --output=address -- '*')"} ) _store_cache notmuch-addresses notmuch_addr notmuch_addr_lastmod fi _description notmuch-addr expl 'email address (notmuch)' compadd "$expl[@]" -a notmuch_addr