--- /dev/null
+Return-Path: <jani@nikula.org>\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 0C65F431FBD\r
+ for <notmuch@notmuchmail.org>; Mon, 13 May 2013 11:27:13 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 RsI5FwdqR6u1 for <notmuch@notmuchmail.org>;\r
+ Mon, 13 May 2013 11:27:07 -0700 (PDT)\r
+Received: from mail-la0-f50.google.com (mail-la0-f50.google.com\r
+ [209.85.215.50]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 549F1431FAE\r
+ for <notmuch@notmuchmail.org>; Mon, 13 May 2013 11:27:07 -0700 (PDT)\r
+Received: by mail-la0-f50.google.com with SMTP id dz20so2602264lab.37\r
+ for <notmuch@notmuchmail.org>; Mon, 13 May 2013 11:27:04 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=google.com; s=20120113;\r
+ h=x-received:from:to:subject:date:message-id:x-mailer\r
+ :x-gm-message-state;\r
+ bh=1/1Tv66P7zq+O5D4q+V6l1miYoOZWKV+nyOR633I/5E=;\r
+ b=INdigKLvXTQFnEvOWRIkOgBlvTE/cKiRy1T+L3KNt24e5m1ABc8hXe3AR0Ea8BXDml\r
+ L5kQhozdu28Kn7RpHdFrs/J1ZONdb+v4u/mAu/TLdmKKB8HqL4HBPlQFPhT/6BkUT1dF\r
+ 3CgV5dIfMAMI6fsi4/7XUYijrZRqLGPvKNM/D0jeubHDDxnOqeJzc+O0/RV6GVsjjaJH\r
+ QlYMX3WNkWs18Z6n34hRWoFuc6khNpCWc6wo1RXbzboEJkQOl7DAk18xZaCwganA7X6M\r
+ JZIrGBuUFBlKzhyEFtrCxTi2GW1R+yj6cDU18HPUy5uz5ed0WL6cJn024lxE2rAOsSqx\r
+ UOrQ==\r
+X-Received: by 10.112.3.99 with SMTP id b3mr7873858lbb.52.1368469624406;\r
+ Mon, 13 May 2013 11:27:04 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c376-211.dhcp.inet.fi.\r
+ [88.195.118.211])\r
+ by mx.google.com with ESMTPSA id t4sm5922297lbe.7.2013.05.13.11.27.02\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Mon, 13 May 2013 11:27:03 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/6] cli: better tooling support for duplicate messages\r
+Date: Mon, 13 May 2013 21:26:55 +0300\r
+Message-Id: <cover.1368467532.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.10.4\r
+X-Gm-Message-State:\r
+ ALoCoQkFtKxySa/9WylXRJggYjGNFsVCPkpA05Nn2KU9hcVMH16v5K5KSf7H7xZGGaelorpmtAMR\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, 13 May 2013 18:27:13 -0000\r
+\r
+Patches 1-3 are an answer to a question on IRC:\r
+\r
+<ccxCZ> is there a way for notmuch search --output=files to only output\r
+ one file for Message-ID instead of all?\r
+\r
+Yes, use --duplicate=0 on the command line. ;)\r
+\r
+I suggest this interface (instead of, say, --output=file1 which was also\r
+contemplated) for two reasons: it allows one to choose also other files\r
+than the first one, and the same interface could be used later on in\r
+notmuch show to display the duplicates.\r
+\r
+An alternative could be something like --duplicates=(all|first|rest)\r
+which would lack the possibility to pick a specific duplicate, but would\r
+allow one to list all the "redundant" files with --duplicates=rest (this\r
+would correspond to a number of invocations with --duplicate=1,\r
+--duplicate=2, etc.)\r
+\r
+Patches 4-6 add support for querying the file counts in notmuch\r
+count. Most useful with a single id:<message-id> query I presume.\r
+\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+Jani Nikula (6):\r
+ cli: add --duplicate=N option to notmuch search\r
+ test: test notmuch search --duplicate=N\r
+ man: document notmuch search --duplicate=N\r
+ cli: add --output=files option to notmuch count\r
+ test: test notmuch count --output=files\r
+ man: document notmuch count --output=files\r
+\r
+ man/man1/notmuch-count.1 | 10 ++++++-\r
+ man/man1/notmuch-search.1 | 11 ++++++++\r
+ notmuch-count.c | 37 ++++++++++++++++++++++++++\r
+ notmuch-search.c | 18 ++++++++-----\r
+ test/count | 10 +++++++\r
+ test/search-output | 65 +++++++++++++++++++++++++++++++++++++++++++++\r
+ 6 files changed, 144 insertions(+), 7 deletions(-)\r
+\r
+-- \r
+1.7.10.4\r
+\r