]> git.cworth.org Git - obsolete/notmuch-to-html/commitdiff
Add a little self advertisement to the footer.
authorCarl Worth <cworth@cworth.org>
Tue, 22 Apr 2014 20:55:13 +0000 (13:55 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 22 Apr 2014 20:55:13 +0000 (13:55 -0700)
People might want to use the script themselves of course...

notmuch-to-html

index f5a6b42827f0498c1822eb7245ea5990482a2738..498921565379514b59e18ce83d532e8dd0d895d6 100755 (executable)
@@ -331,7 +331,11 @@ _PAGES['html'] = HtmlPage(
            encoding=_ENCODING,
            inter_message_padding='0.25em',
            border_radius='0.5em'),
-    footer='<hr><p>Generated: {date}</body>\n</html>\n'.format(date=datetime.datetime.utcnow().date())
+    footer='''<hr>
+<p>Generated: {date} courtesy of <a href="http://notmuchmail.org">notmuch</a> and <a href="http://git.cworth.org/git/notmuch-to-html">notmuch-to-html</a>.
+</body>
+</html>
+'''.format(date=datetime.datetime.utcnow().date())
     )
 
 if args.list_views:
@@ -352,7 +356,9 @@ page.write(database=db, views=config['views'])
 
 if (args.query):
     print ('''To customize the output use 'notmuch-to-html --config=CONFIG_FILE' after
-placing the following content into CONFIG_FILE:
+placing the following content into CONFIG_FILE (note that you can add
+additional views with their own queries):
+
 
 ''', file=sys.stderr)
     print (json.dumps(config, indent=4, separators=(',',':')), file=sys.stderr)