From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3F15F6DE0C6B for ; Mon, 25 Sep 2017 22:36:46 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.013 X-Spam-Level: X-Spam-Status: No, score=-0.013 tagged_above=-999 required=5 tests=[AWL=0.096, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FSL_HELO_NON_FQDN_1=0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nw6p8WufSBMY for ; Mon, 25 Sep 2017 22:36:45 -0700 (PDT) Received: from charon (jb55.com [45.79.91.128]) by arlo.cworth.org (Postfix) with ESMTPS id 0FF286DE1003; Mon, 25 Sep 2017 22:36:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d= jb55.com; h=from:to:subject:date:message-id; s=default; bh=BdneI/Sz5vzGGc7Rm15epmCVOeZtv5+Fj9elrizNJDo=; b=jDr+yPtr2m6EIK7x7CiV9ffNn/JJksmhelfBsWZWmOUbz99FjpNiUO2TYr94iWk78YGDUJdkEwA7kk/8FT/rry3JBAudexXJql9sRH825hvrsw2PAJCcTh2hRlaQxzrYNDwFY0VvsLltfIFlnvGx5zCky0s+kEDSxmRel1MkSfqDvjG51ucbylqc4bs9/COwuf/3o1WMUJgTrC8R0gtJ/x+Lp4TVNoVDYbKkcT8J7u+CZkJZ3k6FCK5PFmUbrxcNq6kerxL1TRvNzKj2dFHW0VIBCkxdxWpsNBsi180wecLXhmSGHyNeOP8KaCRL37Ptm5d+X6BZ7pFcN9ILHuQBIw== Received: from jb55.com (70-36-49-138.dyn.novuscom.net [70.36.49.138]) by jb55.com (OpenSMTPD) with ESMTPSA id cd218cf9 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 26 Sep 2017 05:36:43 +0000 (UTC) From: William Casarin To: notmuch@notmuchmail.org Subject: [PATCH 2/6] sorting: update ruby bindings for from and subject Date: Mon, 25 Sep 2017 22:35:43 -0700 Message-Id: <20170926053547.18564-3-jb55@jb55.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170926053547.18564-1-jb55@jb55.com> References: <20170926053547.18564-1-jb55@jb55.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 05:36:46 -0000 --- 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