--- /dev/null
+Return-Path: <bremner@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 68B606DE025E\r
+ for <notmuch@notmuchmail.org>; Sun, 27 Sep 2015 08:32:49 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.11\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.11 tagged_above=-999 required=5 tests=[AWL=0.110]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id ChDwfNt6TJPe for <notmuch@notmuchmail.org>;\r
+ Sun, 27 Sep 2015 08:32:47 -0700 (PDT)\r
+Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 24D4F6DE01F5\r
+ for <notmuch@notmuchmail.org>; Sun, 27 Sep 2015 08:32:47 -0700 (PDT)\r
+Received: from remotemail by gitolite.debian.net with local (Exim 4.80)\r
+ (envelope-from <bremner@tethera.net>) id 1ZgDwE-0008DX-5D\r
+ for notmuch@notmuchmail.org; Sun, 27 Sep 2015 15:32:30 +0000\r
+Received: (nullmailer pid 11926 invoked by uid 1000); Sun, 27 Sep 2015\r
+ 15:32:11 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: v4 of count patches, plus convert remaining deprecated APIs\r
+Date: Sun, 27 Sep 2015 12:31:54 -0300\r
+Message-Id: <1443367923-11867-1-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 2.5.3\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\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, 27 Sep 2015 15:32:49 -0000\r
+\r
+Apologies for the confusion last night/this-morning with the count\r
+patches. I'm resending the whole series with at least one important\r
+bug fix.\r
+\r
+[Patch v4 1/9] lib: move query variable to function scope\r
+[Patch v4 2/9] cli/count: simplify and document return value of\r
+\r
+The first two patches are setup.\r
+\r
+[Patch v4 3/9] lib: add versions of n_q_count_{message,threads} with\r
+\r
+this is the meat of the series, which adds the new functions, and\r
+converts the lib to use them. I thought about cleaning up some of the\r
+de-allocation paths using talloc_steal, but I concluded that could wait\r
+\r
+[Patch v4 4/9] cli: update to use new count API\r
+[Patch v4 5/9] ruby: use new count API\r
+[Patch v4 6/9] python: update bindings for new count API\r
+\r
+this migrates the CLI and bindings to use the new API.\r
+\r
+[Patch v4 7/9] lib: migrate notmuch_database_upgrade to new\r
+[Patch v4 8/9] lib: migrate thread.cc to new query_search API\r
+[Patch v4 9/9] ruby: use new query_search API\r
+\r
+Finally, some long overdue cleanup of deprecation warnings for the\r
+previous API change. These rely on the same setup patches (namely\r
+1/9), so I put them in the same series.\r