X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch;h=abd44854e3c404f0d121f73186d67a26b40216c8;hp=2f65ae49e631d38b2e6eb069812788d44a762e25;hb=7b9ddcb6a63b29f7088674e1590224b484d8a11d;hpb=ce50b33cf0150a69a3a7499937eaba9447cc75a6 diff --git a/notmuch b/notmuch index 2f65ae49..abd44854 100755 --- a/notmuch +++ b/notmuch @@ -1,6 +1,12 @@ #!/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 + +def init_notmuch(): + import os + from cnotmuch import notmuch + #TODO Handle variable: NOTMUCH-CONFIG + #------------------------------------------------------------------------- HELPTEXT="""The notmuch mail system. @@ -53,7 +59,7 @@ Where and [args...] are as follows: Use "notmuch help " for more details on each command. And "notmuch help search-terms" for the common search-terms syntax. """ - +#------------------------------------------------------------------------- #TODO: replace the dynamic pieces USAGE="""Notmuch is configured and appears to have a database. Excellent! @@ -95,17 +101,16 @@ if __name__ == '__main__': if len(sys.argv) == 2: print HELPTEXT else: print "Not implemented" + elif sys.argv[1] == 'new': + #TODO: handle --verbose + print "Not implemented." else: # unknown command print "Error: Unknown command '%s' (see \"notmuch help\")" % sys.argv[1] #TODO: implement - """ -new [--verbose] - - Find and import new messages to the notmuch database. - + """ search [options...] [...] Search for messages matching the given search terms.