OK, here is my proposal to add search terms to notmuch dump. Most of the work is in argument processing. It would be nice if we could factor some of that out.
02be821 notmuch-dump: deprecate use of output file argument. 2b7781d test: all dump-restore tests should be working now 7a203d6 notmuch-dump: treat any remaining arguments after the filename as search t be762d9 notmuch-dump: update handling of file name argument d6715d7 test: add tests for command line arguments to notmuch-dump 08e76cc test: update dump-restore to use redirection instead of filename args notmuch-dump.c | 37 ++++++++++++++++++++++++++----------- test/dump-restore | 39 ++++++++++++++++++++++++++++++++++----- 2 files changed, 60 insertions(+), 16 deletions(-)