From af8664689ac66b2ee79c904c6483f1172768da39 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Fri, 23 Apr 2010 13:37:08 +0200 Subject: [PATCH] python: Add UNSORTED as Query.SORT option Keep up to date with the libnotmuch.so API. Signed-off-by: Sebastian Spaeth --- bindings/python/docs/source/index.rst | 6 +++++- bindings/python/notmuch/database.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bindings/python/docs/source/index.rst b/bindings/python/docs/source/index.rst index c90492c8..040bd053 100644 --- a/bindings/python/docs/source/index.rst +++ b/bindings/python/docs/source/index.rst @@ -99,7 +99,11 @@ More information on specific topics can be found on the following pages: Sort by message date, newest first. SORT.MESSAGE_ID - Sort by email message ID + Sort by email message ID. + + SORT.UNSORTED + Do not apply a special sort order (returns results in document id + order). .. automethod:: set_sort diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index f141c03e..fc7edf0b 100644 --- a/bindings/python/notmuch/database.py +++ b/bindings/python/notmuch/database.py @@ -459,7 +459,7 @@ class Query(object): other unexpected behavior. See above for more details. """ # constants - SORT = Enum(['OLDEST_FIRST','NEWEST_FIRST','MESSAGE_ID']) + SORT = Enum(['OLDEST_FIRST','NEWEST_FIRST','MESSAGE_ID', 'UNSORTED']) """Constants: Sort order in which to return results""" """notmuch_query_create""" -- 2.26.2