[PATCH 1/2] nmbug-status: parametrize title and blurb in the page header
authorJani Nikula <jani@nikula.org>
Thu, 13 Mar 2014 12:04:04 +0000 (13:04 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:00:45 +0000 (10:00 -0800)
53/a517475ee3520e36bb93124d8fc3f5c0fa2a3a [new file with mode: 0644]

diff --git a/53/a517475ee3520e36bb93124d8fc3f5c0fa2a3a b/53/a517475ee3520e36bb93124d8fc3f5c0fa2a3a
new file mode 100644 (file)
index 0000000..51fb6d1
--- /dev/null
@@ -0,0 +1,109 @@
+Return-Path: <jani@nikula.org>\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 46DAA431E64\r
+       for <notmuch@notmuchmail.org>; Thu, 13 Mar 2014 05:04:21 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 7sqQcBBuxoro for <notmuch@notmuchmail.org>;\r
+       Thu, 13 Mar 2014 05:04:15 -0700 (PDT)\r
+Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com\r
+ [74.125.82.41])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ D76EB431FAF   for <notmuch@notmuchmail.org>; Thu, 13 Mar 2014 05:04:14 -0700\r
+ (PDT)\r
+Received: by mail-wg0-f41.google.com with SMTP id n12so774398wgh.24\r
+       for <notmuch@notmuchmail.org>; Thu, 13 Mar 2014 05:04:12 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
+       :references:in-reply-to:references;\r
+       bh=gItwSepmHFAuRyK5dIFLakFxDe58RVOm0vtR/2BMcNA=;\r
+       b=X3/nCxLpGszVYfTcfxR50p603eldCju8jslcxb+lzVPjnHqRIWkAC0bK6ukER9gOdF\r
+       K+5J/cigd6R9WjFdPKmJsIFhfsw19fzo2I3D0OAR0ejDlmFQ2nnC53yrnJORKwXCrevB\r
+       JusoPmqSTPFzorpgGTLdR2nfW4Fg0olcelT/lujtt0vjXjZlZ+RTZTKpXciaxpiQ7Hya\r
+       hxU/fCF8smyawVo2wHiCK+HBSj5zQyOHSp8ZncqL4ScUdU2lQUwzZ8t8z7HD6UPm28rZ\r
+       0GWzw+hxUjLHYxRy5WXUOzXj0HN6T30YaMT7BBiSEnibIyHPgcghzWZ04lZxF0cXvBzd\r
+       oEeQ==\r
+X-Gm-Message-State:\r
+ ALoCoQlb1XXFHOa5Hbz4NEOXD3kVRY2hxNmENasC0Dqe9v1ewhdsjOp0YXH0+E9ShlBAgdeNyqu2\r
+X-Received: by 10.180.165.174 with SMTP id yz14mr1329930wib.34.1394712252291; \r
+       Thu, 13 Mar 2014 05:04:12 -0700 (PDT)\r
+Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
+       by mx.google.com with ESMTPSA id q15sm5111430wjw.18.2014.03.13.05.04.11\r
+       for <multiple recipients>\r
+       (version=TLSv1.1 cipher=RC4-SHA bits=128/128);\r
+       Thu, 13 Mar 2014 05:04:11 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] nmbug-status: parametrize title and blurb in the page\r
+       header\r
+Date: Thu, 13 Mar 2014 13:04:04 +0100\r
+Message-Id:\r
+ <4d46b302b1771bf4652792cb7b9f68c075cdff15.1394711823.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.2.5\r
+In-Reply-To: <cover.1394711823.git.jani@nikula.org>\r
+References: <cover.1394711823.git.jani@nikula.org>\r
+In-Reply-To: <cover.1394711823.git.jani@nikula.org>\r
+References: <cover.1394711823.git.jani@nikula.org>\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: Thu, 13 Mar 2014 12:04:21 -0000\r
+\r
+Prepare for more general use.\r
+---\r
+ devel/nmbug/nmbug-status |    8 +++++---\r
+ 1 files changed, 5 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status\r
+index 6b2572c..cb3901f 100755\r
+--- a/devel/nmbug/nmbug-status\r
++++ b/devel/nmbug/nmbug-status\r
+@@ -249,7 +249,7 @@ _PAGES['html'] = HtmlPage(\r
+ <html lang="en">\r
+ <head>\r
+   <meta http-equiv="Content-Type" content="text/html; charset={encoding}" />\r
+-  <title>Notmuch Patches</title>\r
++  <title>{title}</title>\r
+   <style media="screen" type="text/css">\r
+     table {{\r
+       border-spacing: 0;\r
+@@ -285,13 +285,15 @@ _PAGES['html'] = HtmlPage(\r
+   </style>\r
+ </head>\r
+ <body>\r
+-<h2>Notmuch Patches</h2>\r
++<h2>{title}</h2>\r
+ <p>\r
+ Generated: {date}<br />\r
+-For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>\r
++{blurb}\r
+ </p>\r
+ <h3>Views</h3>\r
+ '''.format(date=datetime.datetime.utcnow().date(),\r
++           title='Notmuch Patches',\r
++           blurb='For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>',\r
+            encoding=_ENCODING,\r
+            inter_message_padding='0.25em',\r
+            border_radius='0.5em'),\r
+-- \r
+1.7.2.5\r
+\r