X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=notmuch;h=c89777e33c8b39b4fce28ddc9d89238650845fc3;hb=bb5870b9af7d023d7d61233dc19d73772d84fdc5;hp=e30fccd6c9460b7cc20890436f6089933f2b28df;hpb=5cb8dbeab5d168d9a1abef93a46158b62ae07462;p=notmuch diff --git a/notmuch b/notmuch index e30fccd6..c89777e3 100755 --- a/notmuch +++ b/notmuch @@ -1,7 +1,8 @@ #!/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. @@ -100,6 +101,13 @@ if __name__ == '__main__': 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]