summaryrefslogtreecommitdiff
path: root/alot/db/sort.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/db/sort.py')
-rw-r--r--alot/db/sort.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/alot/db/sort.py b/alot/db/sort.py
new file mode 100644
index 00000000..b93c814d
--- /dev/null
+++ b/alot/db/sort.py
@@ -0,0 +1,14 @@
+# Copyright (C) 2012 Anton Khirnov <anton@khirnov.net>
+# This file is released under the GNU GPL, version 3 or a later revision.
+# For further details see the COPYING file
+
+import notmuch2
+
+ORDER = notmuch2.Database.SORT
+
+NAME = {
+ 'oldest_first' : ORDER.OLDEST_FIRST,
+ 'newest_first' : ORDER.NEWEST_FIRST,
+ 'message_id' : ORDER.MESSAGE_ID,
+ 'unsorted' : ORDER.UNSORTED,
+}