Here is yet another iteration of my "notmuch compact" patchset. It has been rebased on top of master and the interface reworked as suggested by Jani. Cheers, - Ben