Carl Worth [Tue, 22 Apr 2014 20:48:23 +0000 (13:48 -0700)]
Add support for a --query option (along with a default configuration)
Since I don't like programs that require configuration, here we make
this script self-configuring. When run with no options, it will print
an example usage for a simple query:
notmuch-to-html --query=tag:inbox
Then, if run with that query, it will use a very simple, built-in
configuration to run the query. Finally, it will also print out,
(to stderr, to avoid breaking redirection), a sample configuration
file so that the user can customize the output.
Carl Worth [Tue, 22 Apr 2014 20:15:58 +0000 (13:15 -0700)]
Drop the --get-query option
This would make sense when the configuration file is tucked away
inside some secret git repository, but when the configuration file
must be explicitly provided to the script, it doesn't seem that
useful.
Carl Worth [Tue, 22 Apr 2014 20:03:09 +0000 (13:03 -0700)]
Make the configuration file a required argument.
For nmbug, there was some code here to read a configuration file out
of a git repository. But for a standalone notmuch-to-html, let's
simply require a configuration file.
Carl Worth [Tue, 22 Apr 2014 20:00:10 +0000 (13:00 -0700)]
Add explicit license information
The "same license as notmuch" text was probably fine when the file was
contained within the notmuch source repository, but here, externally,
we should be explicit.