--- /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 2F82C431FB6\r
+ for <notmuch@notmuchmail.org>; Mon, 15 Apr 2013 07:26:50 -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 ed2hgXTm-Vc6 for <notmuch@notmuchmail.org>;\r
+ Mon, 15 Apr 2013 07:26:49 -0700 (PDT)\r
+Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\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 84CF9431FAF\r
+ for <notmuch@notmuchmail.org>; Mon, 15 Apr 2013 07:26:49 -0700 (PDT)\r
+Received: from remotemail by tesseract.cs.unb.ca with local (Exim 4.80)\r
+ (envelope-from <bremner@tesseract.cs.unb.ca>)\r
+ id 1URkMo-0007pc-Hr; Mon, 15 Apr 2013 11:26:46 -0300\r
+Received: (nullmailer pid 29090 invoked by uid 1000);\r
+ Mon, 15 Apr 2013 14:26:44 -0000\r
+From: david@tethera.net\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] man: document NOTMUCH_DEBUG_QUERY\r
+Date: Mon, 15 Apr 2013 11:26:36 -0300\r
+Message-Id: <1366035996-29019-1-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To: <874nhzyaw0.fsf@servo.finestructure.net>\r
+References: <874nhzyaw0.fsf@servo.finestructure.net>\r
+Cc: David Bremner <bremner@unb.ca>\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, 15 Apr 2013 14:26:50 -0000\r
+\r
+From: David Bremner <bremner@unb.ca>\r
+\r
+This is is really functionality of the library, but CLI users might\r
+not look at library docs even if they existed beyond notmuch.h\r
+---\r
+ man/man1/notmuch.1 | 5 +++++\r
+ 1 file changed, 5 insertions(+)\r
+\r
+diff --git a/man/man1/notmuch.1 b/man/man1/notmuch.1\r
+index 923fefe..033cc10 100644\r
+--- a/man/man1/notmuch.1\r
++++ b/man/man1/notmuch.1\r
+@@ -164,6 +164,11 @@ Location to write a talloc memory usage report. See\r
+ in \fBtalloc\fR(3)\r
+ for more information.\r
+ \r
++.TP\r
++.B NOTMUCH_DEBUG_QUERY\r
++If set to a non-empty value, the notmuch library will print (to stderr) Xapian\r
++queries it constructs.\r
++\r
+ .SH SEE ALSO\r
+ \r
+ \fBnotmuch-config\fR(1), \fBnotmuch-count\fR(1),\r
+-- \r
+1.7.10.4\r
+\r