This tutorial aims to help you setup notmuch for multiple IMAP accounts and use emacs as a frontend.
( At the time writing this tutorial emacs version was 24.3 and notmuch version was 0.15.2)
The stack
We are going to use the following stack to fetch, index and finally read our emails.
offlineimap --> notmuch --> emacs