X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=notmuch-to-html;h=5aba2a5fe67e6f13782a37590ff55411e7daf295;hb=f55ff7e7dcea67f544050c4a9508b3d1764d7c69;hp=663dd8733e0129163ff745b9aef1ac42d57f12cf;hpb=336411fb8710d395fc76cbe958e137360b5fda33;p=obsolete%2Fnotmuch-to-html diff --git a/notmuch-to-html b/notmuch-to-html index 663dd87..5aba2a5 100755 --- a/notmuch-to-html +++ b/notmuch-to-html @@ -245,8 +245,6 @@ parser.add_argument('--text', help='output plain text format', action='store_true') parser.add_argument('--list-views', help='list views', action='store_true') -parser.add_argument('--get-query', help='get query for view', - metavar='VIEW') args = parser.parse_args() @@ -295,29 +293,21 @@ _PAGES['html'] = HtmlPage(

{title}

-

-Generated: {date}
{blurb}

Views

-'''.format(date=datetime.datetime.utcnow().date(), - title=config['meta']['title'], +'''.format(title=config['meta']['title'], blurb=config['meta']['blurb'], encoding=_ENCODING, inter_message_padding='0.25em', border_radius='0.5em'), - footer='\n\n', + footer='

Generated: {date}\n\n'.format(date=datetime.datetime.utcnow().date()) ) if args.list_views: for view in config['views']: print(view['title']) sys.exit(0) -elif args.get_query != None: - for view in config['views']: - if args.get_query == view['title']: - print(' and '.join(view['query'])) - sys.exit(0) else: # only import notmuch if needed import notmuch