--- /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 695D4429E26\r
+ for <notmuch@notmuchmail.org>; Sat, 1 Nov 2014 17:50:46 -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 exlFZARe7bp7 for <notmuch@notmuchmail.org>;\r
+ Sat, 1 Nov 2014 17:50:40 -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 9B90A429E27\r
+ for <notmuch@notmuchmail.org>; Sat, 1 Nov 2014 17:50:17 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.7])\r
+ by max.feld.cvut.cz (Postfix) with ESMTP id 391075CD295\r
+ for <notmuch@notmuchmail.org>; Sun, 2 Nov 2014 01:50:10 +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 6mfCejYuV66R for <notmuch@notmuchmail.org>;\r
+ Sun, 2 Nov 2014 01:50:06 +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 7F34F5CD28D\r
+ for <notmuch@notmuchmail.org>; Sun, 2 Nov 2014 01:50:06 +0100 (CET)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.84)\r
+ (envelope-from <sojkam1@fel.cvut.cz>)\r
+ id 1XkjMq-00084k-CY; Sun, 02 Nov 2014 01:50:04 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 00/10] "notmuch address" command\r
+Date: Sun, 2 Nov 2014 01:49:50 +0100\r
+Message-Id: <1414889400-30977-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: Sun, 02 Nov 2014 00:50:46 -0000\r
+\r
+Hi all,\r
+\r
+this patch series is continuation of address output patches [1] and\r
+applies on current master. It is based on Jani's idea to have new\r
+command "notmuch address", but share the implementation with search\r
+[2].\r
+\r
+I tried to do it in a bit more cleaner way than Jani's RFC. In\r
+particular I wanted each command to process command line independently\r
+and only share search functions.\r
+\r
+Don't be scared by the number of patches. Most of them are trivial\r
+refactoring. Patches 1-4 refactor the code so that it is easier to\r
+split. Patch 5 is Jani's hierarchical command line parsing patch.\r
+Patch 6 splits search functionality to new address command. Patch 7 is\r
+minor refactoring. Patches 8-10 correspond to patches 5-7 in [1].\r
+\r
+All patches pass the test suite.\r
+\r
+Regards,\r
+-Michal\r
+\r
+[1] id:1414792441-29555-1-git-send-email-sojkam1@fel.cvut.cz\r
+[2] id:cover.1414839970.git.jani@nikula.org\r
+\r
+\r
+Jani Nikula (1):\r
+ cli: add support for hierarchical command line option arrays\r
+\r
+Michal Sojka (9):\r
+ cli: search: Rename options to context\r
+ cli: search: Move more variables into search_context_t\r
+ cli: search: Convert ctx. to ctx->\r
+ cli: search: Split notmuch_search_command to smaller functions\r
+ cli: Introduce "notmuch address" command\r
+ cli: search: Convert --output to keyword argument\r
+ cli: address: Do not output duplicate addresses\r
+ cli: address: Add --output=count\r
+ cli: address: Add --filter-by option to configure address filtering\r
+\r
+ command-line-arguments.c | 14 +-\r
+ command-line-arguments.h | 1 +\r
+ completion/notmuch-completion.bash | 48 +++-\r
+ completion/notmuch-completion.zsh | 11 +-\r
+ doc/man1/notmuch-address.rst | 140 ++++++++++++\r
+ doc/man1/notmuch-search.rst | 21 +-\r
+ doc/man1/notmuch.rst | 7 +-\r
+ notmuch-client.h | 3 +\r
+ notmuch-search.c | 440 ++++++++++++++++++++++++++-----------\r
+ notmuch.c | 2 +\r
+ test/T095-address.sh | 148 +++++++++++++\r
+ test/T097-address-filter-by.sh | 73 ++++++\r
+ 12 files changed, 743 insertions(+), 165 deletions(-)\r
+ create mode 100644 doc/man1/notmuch-address.rst\r
+ create mode 100755 test/T095-address.sh\r
+ create mode 100755 test/T097-address-filter-by.sh\r
+\r
+-- \r
+2.1.1\r
+\r