mu is a collection of utilities for maildirs, in particular for indexing and searching them. mu fills a database with information about your emails, which can then be queried using an easy query language. It can work stand-alone or be integrated with a mail client. It also provides an emacs-based email client ("mu4e") and bindings for Guile/Scheme.