From 158211a970cc971fda6f236ce0bcbcce6ba6dad8 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 22 Apr 2014 13:55:13 -0700 Subject: [PATCH] Add a little self advertisement to the footer. People might want to use the script themselves of course... --- notmuch-to-html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/notmuch-to-html b/notmuch-to-html index f5a6b42..4989215 100755 --- a/notmuch-to-html +++ b/notmuch-to-html @@ -331,7 +331,11 @@ _PAGES['html'] = HtmlPage( encoding=_ENCODING, inter_message_padding='0.25em', border_radius='0.5em'), - footer='

Generated: {date}\n\n'.format(date=datetime.datetime.utcnow().date()) + footer='''


+

Generated: {date} courtesy of notmuch and notmuch-to-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) -- 2.43.0