From: Michal Sojka Date: Sun, 5 Oct 2014 20:51:55 +0000 (+0200) Subject: [PATCH v2 0/4] notmuch search --output=addresses X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e5bbef7528fee513657d0bd4253bf02b5201af66;p=notmuch-archives.git [PATCH v2 0/4] notmuch search --output=addresses --- diff --git a/a6/40ea792d5f7bc665bce46074ce7da65a8eb2fc b/a6/40ea792d5f7bc665bce46074ce7da65a8eb2fc new file mode 100644 index 000000000..1ce2531da --- /dev/null +++ b/a6/40ea792d5f7bc665bce46074ce7da65a8eb2fc @@ -0,0 +1,96 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 15E03431FC0 + for ; Sun, 5 Oct 2014 13:52:41 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id lY9bAGkoErZ9 for ; + Sun, 5 Oct 2014 13:52:37 -0700 (PDT) +Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) + by olra.theworths.org (Postfix) with ESMTP id F09ED431FB6 + for ; Sun, 5 Oct 2014 13:52:36 -0700 (PDT) +Received: from localhost (unknown [192.168.200.7]) + by max.feld.cvut.cz (Postfix) with ESMTP id 6FE573CFE96 + for ; Sun, 5 Oct 2014 22:52:36 +0200 (CEST) +X-Virus-Scanned: IMAP STYX AMAVIS +Received: from max.feld.cvut.cz ([192.168.200.1]) + by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new, + port 10044) with ESMTP id 3Qo98R-NnNHE for ; + Sun, 5 Oct 2014 22:52:32 +0200 (CEST) +Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) + by max.feld.cvut.cz (Postfix) with ESMTP id 5E7B05CCEF6 + for ; Sun, 5 Oct 2014 22:52:31 +0200 (CEST) +Received: from wsh by steelpick.2x.cz with local (Exim 4.84) + (envelope-from ) + id 1Xasn2-0005Dx-Oj; Sun, 05 Oct 2014 22:52:24 +0200 +From: Michal Sojka +To: notmuch@notmuchmail.org +Subject: [PATCH v2 0/4] notmuch search --output=addresses +Date: Sun, 5 Oct 2014 22:51:55 +0200 +Message-Id: <1412542319-20017-1-git-send-email-sojkam1@fel.cvut.cz> +X-Mailer: git-send-email 2.1.1 +In-Reply-To: <874mvqxrnp.fsf@nikula.org> +References: <874mvqxrnp.fsf@nikula.org> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 05 Oct 2014 20:52:41 -0000 + +Hi, + +this is a second version of my adaptation of Jani's patch series +adding --output=addresses and similar arguments to notmuch search. + +Based on the feedback from others, this version uses Jani's original +"keyword flags" implementation with --flag=a --flab=b syntax. Also the +tests for --output and --unique flags are not mixed together, but are +included in the patches that introduce the new features. + +I left the default value of the --unique option the same as before, +because I'm convinced that this is what makes most sense. But of +course, we can discuss about that. + +-Michal + + +Jani Nikula (1): + cli: Add support for parsing multiple keyword arguments + +Michal Sojka (3): + cli: Refactor option passing in the search command + cli: Extend the search command for --output=addresses and similar + cli: Add configurable address deduplication for --output=addresses + + command-line-arguments.c | 6 +- + command-line-arguments.h | 1 + + completion/notmuch-completion.bash | 8 +- + completion/notmuch-completion.zsh | 4 +- + doc/man1/notmuch-search.rst | 54 ++++++- + notmuch-search.c | 311 +++++++++++++++++++++++++++++-------- + test/T090-search-output.sh | 64 ++++++++ + test/T095-search-unique.sh | 63 ++++++++ + test/T410-argument-parsing.sh | 3 +- + test/arg-test.c | 9 ++ + 10 files changed, 451 insertions(+), 72 deletions(-) + create mode 100755 test/T095-search-unique.sh + +-- +2.1.1 +