This is a rebased version of id:1340198947-29370-1-git-send-email-novalazy@gmail.com I have not tested it significantly in this form but the rebasing looks ok and all the tests pass. Best wishes Mark Mark Walters (2): lib: add --exclude=all option cli: add --exclude=all option to notmuch-search.c Peter Wang (6): test: add tests for search --exclude=all man: clarify search --exclude documentation man: clarify search --exclude=flag man: document search --exclude=all lib: add NOTMUCH_EXCLUDE_FLAG to notmuch_exclude_t cli: use notmuch_exclude_t in option parser lib/notmuch-private.h | 1 + lib/notmuch.h | 23 ++++++++++++++++------- lib/query.cc | 14 +++++++++----- lib/thread.cc | 41 ++++++++++++++++++++++++++++++----------- man/man1/notmuch-search.1 | 29 +++++++++++++++++++++++------ notmuch-search.c | 24 +++++++++--------------- test/excludes | 22 ++++++++++++++++++++++ 7 files changed, 110 insertions(+), 44 deletions(-) -- 1.7.9.1