X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch;h=478aed3ab0108fd79fac1d524fbcf03623b68e42;hp=56f961b47d581f68172d2e9114b9190d6ff7a10d;hb=95f259409ef48dbd31c3670a5e2fe288f05ba2a0;hpb=3b2d73c684501e2eb906542f5081125d4e9c485d diff --git a/notmuch b/notmuch index 56f961b4..478aed3a 100755 --- a/notmuch +++ b/notmuch @@ -138,6 +138,15 @@ if __name__ == '__main__': m = Query(db,querystr).search_messages() print("\n".join([t for t in m.collect_tags()])) + elif sys.argv[1] == 'dump': + #TODO: implement "dump " + 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] @@ -153,10 +162,6 @@ show [...] Show all messages matching the search terms. -count [...] - - Count messages matching the search terms. - reply [options...] [...] Construct a reply template for a set of messages.