From: Michal Sojka Date: Sun, 12 Oct 2014 21:41:29 +0000 (+0200) Subject: [PATCH v3 0/4] notmuch search --output=sender/recipients X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=effda854c2af3001acb69a246dd3bb90df91f965;p=notmuch-archives.git [PATCH v3 0/4] notmuch search --output=sender/recipients --- diff --git a/ff/d1c0354e95c0e7d31b53f2736206e60d21a13a b/ff/d1c0354e95c0e7d31b53f2736206e60d21a13a new file mode 100644 index 000000000..88aa8f23a --- /dev/null +++ b/ff/d1c0354e95c0e7d31b53f2736206e60d21a13a @@ -0,0 +1,103 @@ +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 1526E431E84 + for ; Sun, 12 Oct 2014 14:41:59 -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 UyocNQJk1gnc for ; + Sun, 12 Oct 2014 14:41:51 -0700 (PDT) +Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) + by olra.theworths.org (Postfix) with ESMTP id 1FD6E431FAE + for ; Sun, 12 Oct 2014 14:41:51 -0700 (PDT) +Received: from localhost (unknown [192.168.200.7]) + by max.feld.cvut.cz (Postfix) with ESMTP id E01695CCF24 + for ; Sun, 12 Oct 2014 23:41:49 +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 GtsAi_AdO1FV for ; + Sun, 12 Oct 2014 23:41:46 +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 463725CCF21 + for ; Sun, 12 Oct 2014 23:41:45 +0200 (CEST) +Received: from wsh by steelpick.2x.cz with local (Exim 4.84) + (envelope-from ) + id 1XdQtb-0002C6-2r; Sun, 12 Oct 2014 23:41:43 +0200 +From: Michal Sojka +To: notmuch@notmuchmail.org +Subject: [PATCH v3 0/4] notmuch search --output=sender/recipients +Date: Sun, 12 Oct 2014 23:41:29 +0200 +Message-Id: <1413150093-8383-1-git-send-email-sojkam1@fel.cvut.cz> +X-Mailer: git-send-email 2.1.1 +In-Reply-To: <87zjd51phx.fsf@steelpick.2x.cz> +References: <87zjd51phx.fsf@steelpick.2x.cz> +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, 12 Oct 2014 21:41:59 -0000 + +Hi, + +this is a third version of my adaptation of Jani's patch series adding +--output=sender/recipients and related arguments to notmuch search. + +The 1st patch is the same as in v2 (Marked as OK in +id:m24mvht4c4.fsf@guru.guru-group.fi). + +The 2nd patch is not changed as well, but in v2 it was patch 3/4. + +The 3rd patch is rewritten to use the "keyword flags" introduced in +patch 2 (requested by Tomi). The code is basically the same as in +id:1410021689-15901-1-git-send-email-jani@nikula.org, but tests are +added and shell completion is updated. + +Finally, last patch adds --filter-by option that allows one to filter +out duplicate addresses. This option was called --unique in v2 and the +the semantic is slightly different now. This resulted in simpler code. +The documentation was also reworked and is hopefully more +understandable now. + +-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={sender,recipients} + cli: Add an option to filter our duplicate 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 | 309 +++++++++++++++++++++++++++++-------- + test/T090-search-output.sh | 64 ++++++++ + test/T095-search-filter-by.sh | 55 +++++++ + test/T410-argument-parsing.sh | 3 +- + test/arg-test.c | 9 ++ + 10 files changed, 440 insertions(+), 73 deletions(-) + create mode 100755 test/T095-search-filter-by.sh + +-- +2.1.1 +