[Patch v7 06/14] notmuch-restore: move query handling for batch restore to parser