--- /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 85F6F6DE189A\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 04:31:38 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.033\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.033 tagged_above=-999 required=5\r
+ tests=[AWL=-0.022, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\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 n0xUTgGUafO6 for <notmuch@notmuchmail.org>;\r
+ Sat, 12 Mar 2016 04:31:36 -0800 (PST)\r
+Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id A76956DE13EF\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 04:31:36 -0800 (PST)\r
+Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
+ (envelope-from <bremner@tethera.net>)\r
+ id 1aeiiK-0004yd-Pb; Sat, 12 Mar 2016 07:32:12 -0500\r
+Received: (nullmailer pid 17170 invoked by uid 1000);\r
+ Sat, 12 Mar 2016 12:31:33 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: library config api v4\r
+Date: Sat, 12 Mar 2016 08:31:24 -0400\r
+Message-Id: <1457785890-17058-1-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 2.7.0\r
+In-Reply-To: <1453561198-2893-1-git-send-email-david@tethera.net>\r
+References: <1453561198-2893-1-git-send-email-david@tethera.net>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 12 Mar 2016 12:31:38 -0000\r
+\r
+This is an updated version of id:1453561198-2893-1-git-send-email-david@tethera.net\r
+\r
+The main change is patch 6/6 that uses the config facility to split the\r
+database from the mail messages. In order to cut the Gordian knot of\r
+how to find the database using config information stored in the\r
+database, this uses a well known location (based on XDG_DATA_HOME) to\r
+store the database. This is a proof of concept at this point; you can\r
+see the basic idea in the last test of T590-libconfig.sh. Some\r
+modifications to notmuch-setup / notmuch-config would be needed to\r
+make this usable.\r
+\r
+I haven't tested it very extensively, but in principle at the library\r
+level this allows the database and maildir root to be arbitrary paths;\r
+if a well known location is not used for the database, then it would\r
+be up to the clients to keep track of the database location.\r