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