--- /dev/null
+Return-Path: <bremner@tesseract.cs.unb.ca>\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 0E0D4431FC7\r
+ for <notmuch@notmuchmail.org>; Sun, 28 Sep 2014 11:28:57 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ 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 MlSeJfCv7q4d for <notmuch@notmuchmail.org>;\r
+ Sun, 28 Sep 2014 11:28:53 -0700 (PDT)\r
+Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
+ (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 9A82D431FAE\r
+ for <notmuch@notmuchmail.org>; Sun, 28 Sep 2014 11:28:53 -0700 (PDT)\r
+Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
+ (envelope-from <bremner@tesseract.cs.unb.ca>) id 1XYJDD-0005fn-QG\r
+ for notmuch@notmuchmail.org; Sun, 28 Sep 2014 15:28:47 -0300\r
+Received: (nullmailer pid 31273 invoked by uid 1000); Sun, 28 Sep 2014\r
+ 18:28:41 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: \r
+Date: Sun, 28 Sep 2014 20:28:16 +0200\r
+Message-Id: <1411928899-29625-1-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 2.1.0\r
+In-Reply-To: <87iok8vog6.fsf@steelpick.2x.cz>\r
+References: <87iok8vog6.fsf@steelpick.2x.cz>\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, 28 Sep 2014 18:28:57 -0000\r
+\r
+Here's one approach to keeping config information at the library\r
+level. IMHO, a key philosophical point is that this metadata is\r
+associated with a database, not with the library.\r
+\r
+Having every key map to a distinct file is arguably not as nice for\r
+humans to edit, but it avoids certain concurrency complications;\r
+e.g. glib can atomically write a keyfile (like we use for\r
+.notmuch-config), but that means e.g. the result of two concurrent\r
+updates to different keys is not a valid serialization.\r
+\r
+It won't be very efficient for huge numbers of keys, but for keeping\r
+some static metadata associated with a notmuch database, this should\r
+work ok.\r
+\r
+In addition to needing some polishing (documentation? what\r
+documentation?), this isn't actually used anywhere in notmuch.\r
+\r