#!/usr/bin/env python
"""This is a notmuch implementation in python. It's goal is to allow running the test suite on the cnotmuch python bindings."""
-import sys
-from cnotmuch import notmuch
+import sys, os
+from cnotmuch.notmuch import Database, Query
+#TODO Handle variable: NOTMUCH-CONFIG
#-------------------------------------------------------------------------
HELPTEXT="""The notmuch mail system.
elif sys.argv[1] == 'new':
#TODO: handle --verbose
print "Not implemented."
+
+ elif sys.argv[1] == 'search-tags':
+ if len(sys.argv) == 2:
+ print("\n".join(Database().get_all_tags()))
+
+ else: print "Not implemented"
+
else:
# unknown command
print "Error: Unknown command '%s' (see \"notmuch help\")" % sys.argv[1]