--- /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 9BE6D429E26\r
+ for <notmuch@notmuchmail.org>; Thu, 30 Oct 2014 16:59:52 -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 tIkl28v2cwka for <notmuch@notmuchmail.org>;\r
+ Thu, 30 Oct 2014 16:59:44 -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 AFD05431FC2\r
+ for <notmuch@notmuchmail.org>; Thu, 30 Oct 2014 16:59:44 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.7])\r
+ by max.feld.cvut.cz (Postfix) with ESMTP id 10F4D5CCFFD\r
+ for <notmuch@notmuchmail.org>; Fri, 31 Oct 2014 00:59:44 +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 1gJ7QYMSdFgv for <notmuch@notmuchmail.org>;\r
+ Fri, 31 Oct 2014 00:59:40 +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 3C3DA5CCFF4\r
+ for <notmuch@notmuchmail.org>; Fri, 31 Oct 2014 00:59:40 +0100 (CET)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.84)\r
+ (envelope-from <sojkam1@fel.cvut.cz>)\r
+ id 1Xjzcs-0005bD-Oi; Fri, 31 Oct 2014 00:59:34 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v5 0/7] notmuch search --output=sender/recipients\r
+Date: Fri, 31 Oct 2014 00:59:26 +0100\r
+Message-Id: <1414713573-21461-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: Thu, 30 Oct 2014 23:59:52 -0000\r
+\r
+Hi all,\r
+\r
+this is v5 of the search --output=address series. It obsoletes v4\r
+(id:1414421455-3037-1-git-send-email-sojkam1@fel.cvut.cz).\r
+\r
+I addresses comments from Mark and Tomi. Based on the comments to v4\r
+and earlier versions, patches 1-4 should be ready for merging. Patch 5\r
+is a non-controversial part of the controversial --filter-by patch and\r
+could be probably merged after review.\r
+\r
+Patch 6 needs at least a review and patch 7 needs more discussion.\r
+\r
+Changes from v4:\r
+\r
+- patch changed to commit in commit messages\r
+- opt->format changed to format\r
+- Added comments to process_* functions\r
+- duplicite changed to duplicate\r
+- check_duplicate changed to is_duplicate\r
+- Deduplication was split into two commits: basic deduplication\r
+ without a command line option and configurable deduplication with\r
+ --fiter-by.\r
+\r
+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 (6):\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: Do not output duplicate addresses\r
+ cli: search: Add --output=count\r
+ cli: search: Add --filter-by option to configure address filtering\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 | 66 ++++++-\r
+ notmuch-search.c | 388 +++++++++++++++++++++++++++++--------\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, 604 insertions(+), 82 deletions(-)\r
+ create mode 100755 test/T095-search-filter-by.sh\r
+\r
+-- \r
+2.1.1\r
+\r