From: Michal Sojka Date: Mon, 3 Nov 2014 23:50:12 +0000 (+0100) Subject: [PATCH v2 00/10] "notmuch address" command X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d2735d19ce4c1bc4dc717c06178293fda3ba3603;p=notmuch-archives.git [PATCH v2 00/10] "notmuch address" command --- diff --git a/fa/58149f1385f881bc4fec0ee21dc1320be58e5b b/fa/58149f1385f881bc4fec0ee21dc1320be58e5b new file mode 100644 index 000000000..a8e44d7b3 --- /dev/null +++ b/fa/58149f1385f881bc4fec0ee21dc1320be58e5b @@ -0,0 +1,113 @@ +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 90951429E37 + for ; Mon, 3 Nov 2014 15:50:54 -0800 (PST) +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 5Jv62CpjOuLT for ; + Mon, 3 Nov 2014 15:50:47 -0800 (PST) +Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) + by olra.theworths.org (Postfix) with ESMTP id 687ED431FAF + for ; Mon, 3 Nov 2014 15:50:47 -0800 (PST) +Received: from localhost (unknown [192.168.200.7]) + by max.feld.cvut.cz (Postfix) with ESMTP id 6E2555CD011 + for ; Tue, 4 Nov 2014 00:50:45 +0100 (CET) +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 mUs-K_T2GnzJ for ; + Tue, 4 Nov 2014 00:50:40 +0100 (CET) +Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) + by max.feld.cvut.cz (Postfix) with ESMTP id C11EB5CD006 + for ; Tue, 4 Nov 2014 00:50:40 +0100 (CET) +Received: from wsh by steelpick.2x.cz with local (Exim 4.84) + (envelope-from ) + id 1XlROM-0005WJ-0t; Tue, 04 Nov 2014 00:50:34 +0100 +From: Michal Sojka +To: notmuch@notmuchmail.org +Subject: [PATCH v2 00/10] "notmuch address" command +Date: Tue, 4 Nov 2014 00:50:12 +0100 +Message-Id: <1415058622-21162-1-git-send-email-sojkam1@fel.cvut.cz> +X-Mailer: git-send-email 2.1.1 +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: Mon, 03 Nov 2014 23:50:54 -0000 + +Hi all, + +this is v2 of "notmuch address" patchset. It obsoletes [1]. + +Don't be scared by the number of patches. Most of them are trivial +refactoring. Patches 1-4 refactor the code so that "notmuch search" +command is easier to split. Patch 5 is Jani's hierarchical command +line parsing patch. Patch 6 splits search functionality to new address +command. Patch 7 is minor refactoring. Patches 8-10 correspond to +patches 5-7 in the original "notmuch search +--output=sender/recipients" patch series [2]. + +Changes from v1: + +- Rebased to current master (conflicted with Jani's "notmuch search + --duplicate=N with --output=messages" patch) +- Fixed printing of false "Unrecognized option" error message in + hierarchical command line parser. + +Regards, +-Michal + +[1] id:1414889400-30977-1-git-send-email-sojkam1@fel.cvut.cz +[2] id:1414792441-29555-1-git-send-email-sojkam1@fel.cvut.cz + + +Jani Nikula (1): + cli: add support for hierarchical command line option arrays + +Michal Sojka (9): + cli: search: Rename options to context + cli: search: Move more variables into search_context_t + cli: search: Convert ctx. to ctx-> + cli: search: Split notmuch_search_command to smaller functions + cli: Introduce "notmuch address" command + cli: search: Convert --output to keyword argument + cli: address: Do not output duplicate addresses + cli: address: Add --output=count + cli: address: Add --filter-by option to configure address filtering + + command-line-arguments.c | 16 +- + command-line-arguments.h | 1 + + completion/notmuch-completion.bash | 48 +++- + completion/notmuch-completion.zsh | 11 +- + doc/man1/notmuch-address.rst | 140 ++++++++++++ + doc/man1/notmuch-search.rst | 21 +- + doc/man1/notmuch.rst | 7 +- + notmuch-client.h | 3 + + notmuch-search.c | 454 +++++++++++++++++++++++++------------ + notmuch.c | 2 + + test/T095-address.sh | 148 ++++++++++++ + test/T097-address-filter-by.sh | 73 ++++++ + 12 files changed, 751 insertions(+), 173 deletions(-) + create mode 100644 doc/man1/notmuch-address.rst + create mode 100755 test/T095-address.sh + create mode 100755 test/T097-address-filter-by.sh + +-- +2.1.1 +