m = Query(db,querystr).search_messages()
print("\n".join([t for t in m.collect_tags()]))
+ elif sys.argv[1] == 'dump':
+ #TODO: implement "dump <filename>"
+ db = Database()
+ q = Query(db,'')
+ q.set_sort(Query.SORT_MESSAGE_ID)
+ m = q.search_messages()
+ for msg in m:
+ print("%s (%s)" % (msg.get_message_id(), msg.get_tags()))
+
else:
# unknown command
print "Error: Unknown command '%s' (see \"notmuch help\")" % sys.argv[1]
Show all messages matching the search terms.
-count <search-terms> [...]
-
- Count messages matching the search terms.
-
reply [options...] <search-terms> [...]
Construct a reply template for a set of messages.