This obsoletes id:20170414025004.5334-1-david at tethera.net But for some reason the key patch 9/10 was missing (at least for me), so I'm calling this round 1.1. Most of the comments there apply, except - I fixed one memory leak in notmuch_message_reindex - I added a test that reindexing didn't mess up properties