summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
73fcfa8)
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'