]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch: fix to use new Query.SORT enum
authorSebastian Spaeth <sebastian@sspaeth.de>
Wed, 17 Mar 2010 16:11:58 +0000 (17:11 +0100)
committerSebastian Spaeth <sebastian@sspaeth.de>
Wed, 17 Mar 2010 16:11:58 +0000 (17:11 +0100)
notmuch

diff --git a/notmuch b/notmuch
index de9d7b1073c4973cc59486074e0b5c77a9a74a6d..2ddd9ffc52911da15490fe5a741c20e86bcfa72a 100755 (executable)
--- a/notmuch
+++ b/notmuch
@@ -155,7 +155,7 @@ if __name__ == '__main__':
       #TODO: implement "dump <filename>"
       db = Database()
       q = Query(db,'')
-      q.set_sort(Query.SORT_MESSAGE_ID)
+      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()))