Make it possible to use the script to query search views without
notmuch python bindings installed.
# - argparse; either python 2.7, or install separately
import datetime
# - argparse; either python 2.7, or install separately
import datetime
import rfc822
import urllib
import json
import rfc822
import urllib
import json
if args.get_query == view['title']:
print ' and '.join(view['query'])
sys.exit(0)
if args.get_query == view['title']:
print ' and '.join(view['query'])
sys.exit(0)
+else:
+ # only import notmuch if needed
+ import notmuch
if args.text:
output_format = 'text'
if args.text:
output_format = 'text'