X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=notmuch-to-html;h=712fbb7ee2e85637fd4d6eed2c52817554d6d5c2;hb=refs%2Fheads%2Fmaster;hp=edf5c974294d5fe80bfdd604e5fb0a5fb77fd73a;hpb=9fd617756c66dfb10f21dfc6c905c34bc5fb61ac;p=obsolete%2Fnotmuch-to-html diff --git a/notmuch-to-html b/notmuch-to-html index edf5c97..712fbb7 100755 --- a/notmuch-to-html +++ b/notmuch-to-html @@ -4,6 +4,7 @@ # searches, (with links to gmane views of each email if available). # # Copyright (c) 2011-2012 David Bremner +# Copyright (c) 2014 Carl Worth +

Generated: {date} courtesy of notmuch and notmuch-to-html. + + +'''.format(date=datetime.datetime.utcnow().date()) ) if args.list_views: @@ -326,3 +361,12 @@ else: db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY) 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 (note that you can add +additional views with their own queries): + + +''', file=sys.stderr) + print (json.dumps(config, indent=4, separators=(',',':')), file=sys.stderr)