--- /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 065BE431FC3\r
+ for <notmuch@notmuchmail.org>; Mon, 27 Oct 2014 07:51:20 -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 iKHkczHLTrTp for <notmuch@notmuchmail.org>;\r
+ Mon, 27 Oct 2014 07:51:14 -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 8F883431FDC\r
+ for <notmuch@notmuchmail.org>; Mon, 27 Oct 2014 07:51:14 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.7])\r
+ by max.feld.cvut.cz (Postfix) with ESMTP id 6FA035CCF92\r
+ for <notmuch@notmuchmail.org>; Mon, 27 Oct 2014 15:51:12 +0100 (CET)\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 8Ktvdcra6lOl for <notmuch@notmuchmail.org>;\r
+ Mon, 27 Oct 2014 15:51:08 +0100 (CET)\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 9A6055CCF98\r
+ for <notmuch@notmuchmail.org>; Mon, 27 Oct 2014 15:51:07 +0100 (CET)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.84)\r
+ (envelope-from <sojkam1@fel.cvut.cz>)\r
+ id 1XildT-0000oQ-F2; Mon, 27 Oct 2014 15:51:07 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v4 0/6] notmuch search --output=sender/recipients\r
+Date: Mon, 27 Oct 2014 15:50:49 +0100\r
+Message-Id: <1414421455-3037-1-git-send-email-sojkam1@fel.cvut.cz>\r
+X-Mailer: git-send-email 2.1.1\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: Mon, 27 Oct 2014 14:51:20 -0000\r
+\r
+Hi all,\r
+\r
+this is v4 of the search --output=address series. It obsoletes v3 that\r
+starts at id:1413150093-8383-1-git-send-email-sojkam1@fel.cvut.cz.\r
+\r
+It addresses most comments made by Mark Walters and others. In\r
+addition to v3, it also implements new --output=count (also suggested\r
+by Mark). This required changes even in the initial patches of the\r
+series but the result is cleaner code.\r
+\r
+Detailed changes from v3:\r
+\r
+- `o' renamed to `opt'.\r
+- Conversion of --output from keyword to keyword-flags is now a\r
+ separate patch.\r
+- Structured output formats print name and address separately.\r
+- Added test for --format=json.\r
+- Changed --filter-by default to nameaddr. In v2, the default was\r
+ addrfold, in v3 the default was no filtering at all. I believe that\r
+ Mark's suggestion to make nameaddr the default is good trade off.\r
+- Added new --output=count\r
+- Minor style fixes\r
+- Few typos fixed\r
+- There is no way to output unfiltered (duplicite) addresses.\r
+ Hopefully, the introduction of --output=count is sufficient\r
+ replacement for this "feature".\r
+\r
+Cheers,\r
+-Michal\r
+\r
+\r
+Jani Nikula (1):\r
+ cli: Add support for parsing keyword-flag arguments\r
+\r
+Michal Sojka (5):\r
+ cli: search: Refactor passing of command line options\r
+ cli: search: Convert --output to keyword-flag argument\r
+ cli: search: Add --output={sender,recipients}\r
+ cli: search: Add configurable way to filter out duplicate addresses\r
+ cli: search: Add --output=count\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 | 65 ++++++-\r
+ notmuch-search.c | 385 +++++++++++++++++++++++++++++--------\r
+ test/T090-search-output.sh | 137 +++++++++++++\r
+ test/T095-search-filter-by.sh | 64 ++++++\r
+ test/T410-argument-parsing.sh | 3 +-\r
+ test/arg-test.c | 9 +\r
+ 10 files changed, 600 insertions(+), 82 deletions(-)\r
+ create mode 100755 test/T095-search-filter-by.sh\r
+\r
+-- \r
+2.1.1\r
+\r