--- /dev/null
+Return-Path: <too@guru-group.fi>\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 C0D56431FB6\r
+ for <notmuch@notmuchmail.org>; Tue, 23 Oct 2012 23:59:59 -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 G7GBRZwJURB1 for <notmuch@notmuchmail.org>;\r
+ Tue, 23 Oct 2012 23:59:58 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id B634A431FAE\r
+ for <notmuch@notmuchmail.org>; Tue, 23 Oct 2012 23:59:58 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id CECAC100372; Wed, 24 Oct 2012 10:00:00 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] contrib/nmbug/nmbug-status: added table of views\r
+Date: Wed, 24 Oct 2012 09:59:58 +0300\r
+Message-Id: <1351061999-25473-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.7.1\r
+Cc: tomi.ollila@iki.fi\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: Wed, 24 Oct 2012 06:59:59 -0000\r
+\r
+In latest configuration quite a few long views were added to the\r
+Notmuch Patches page. To ease navigating to the views a 'Views'\r
+section was added to the beginning of page containing hyperlink\r
+to every view.\r
+---\r
+ contrib/nmbug/nmbug-status | 8 +++++++-\r
+ 1 files changed, 7 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/contrib/nmbug/nmbug-status b/contrib/nmbug/nmbug-status\r
+index 9a334cc..c663409 100755\r
+--- a/contrib/nmbug/nmbug-status\r
++++ b/contrib/nmbug/nmbug-status\r
+@@ -67,7 +67,7 @@ def print_view(title, query, comment):\r
+ last['thread_id'] = ''\r
+ \r
+ if output_format == 'html':\r
+- print '<h3>%s</h3>' % title\r
++ print '<h3><a name="%s" />%s</h3>' % (title, title)\r
+ print comment\r
+ print 'The view is generated from the following query:'\r
+ print '<blockquote>'\r
+@@ -144,6 +144,12 @@ if output_format == 'html':\r
+ print 'Generated: %s<br />' % datetime.datetime.utcnow().date()\r
+ print 'For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>'\r
+ \r
++ print '<h3>Views</h3>'\r
++ print '<ul>'\r
++ for view in config['views']:\r
++ print '<li><a href="#%(title)s">%(title)s</a></li>' % view\r
++ print '</ul>'\r
++\r
+ for view in config['views']:\r
+ print_view(**view)\r
+ \r
+-- \r
+1.7.1\r
+\r