[PATCH 2/3] sorting: update ruby bindings for from and subject
William Casarin
jb55 at jb55.com
Mon Sep 4 09:00:39 PDT 2017
---
bindings/ruby/init.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/bindings/ruby/init.c b/bindings/ruby/init.c
index 5556b43e..ace8f666 100644
--- a/bindings/ruby/init.c
+++ b/bindings/ruby/init.c
@@ -104,6 +104,30 @@ Init_notmuch (void)
*/
rb_define_const (mod, "SORT_NEWEST_FIRST", INT2FIX (NOTMUCH_SORT_NEWEST_FIRST));
/*
+ * Document-const: Notmuch::SORT_FROM_ASC
+ *
+ * Sort query results by from in ascending order
+ */
+ rb_define_const (mod, "SORT_FROM_ASC", INT2FIX (NOTMUCH_SORT_FROM_ASC));
+ /*
+ * Document-const: Notmuch::SORT_FROM_DESC
+ *
+ * Sort query results by from in descending order
+ */
+ rb_define_const (mod, "SORT_FROM_DESC", INT2FIX (NOTMUCH_SORT_FROM_DESC));
+ /*
+ * Document-const: Notmuch::SORT_SUBJECT_ASC
+ *
+ * Sort query results by subject in ascending order
+ */
+ rb_define_const (mod, "SORT_SUBJECT_ASC", INT2FIX (NOTMUCH_SORT_SUBJECT_ASC));
+ /*
+ * Document-const: Notmuch::SORT_SUBJECT_DESC
+ *
+ * Sort query results by from in descending order
+ */
+ rb_define_const (mod, "SORT_SUBJECT_DESC", INT2FIX (NOTMUCH_SORT_SUBJECT_DESC));
+ /*
* Document-const: Notmuch::SORT_MESSAGE_ID
*
* Sort query results by message id
--
2.13.2
More information about the notmuch
mailing list