Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / ee / 4d621fcd498ebc90a9d0a37a8729da597bfdf8
1 Return-Path: <thibaut.horel@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id C1340431FAF\r
6         for <notmuch@notmuchmail.org>; Sun, 10 Aug 2014 21:44:17 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id K0bkou9R0w38 for <notmuch@notmuchmail.org>;\r
17         Sun, 10 Aug 2014 21:44:11 -0700 (PDT)\r
18 Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com\r
19         [209.85.216.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id C122B431FAE\r
22         for <notmuch@notmuchmail.org>; Sun, 10 Aug 2014 21:44:11 -0700 (PDT)\r
23 Received: by mail-qa0-f54.google.com with SMTP id k15so7619139qaq.27\r
24         for <notmuch@notmuchmail.org>; Sun, 10 Aug 2014 21:44:11 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=date:from:to:subject:message-id:mime-version:content-type\r
27         :content-disposition:user-agent;\r
28         bh=GhmovSHkbVaoQZWnbj2K9ymH9Kqr2i89DPLskRApGuw=;\r
29         b=hVFq1gbW9HGbc+TSTAV0zJWEKG7udACeRFZiikG6KeEVhovHiI+wjmo0HBwWip3Jgh\r
30         fKtB5XfyuA4MZDDQs/Mf7OdyJc0hIM7y7xBDKsEZo3MQjTTU+Ps4cq+QvJ3S8G1cLAtl\r
31         JkhZitdL/JbkZx/T78EOookH+3WfIH0g1IUsWNRKq9BWHDWWGEC0Aj1Pk2+I3BNGu6NX\r
32         6LXqsp4vf+9yjUxzpxz7g279f89uGOyTfJxvzyijCsFpDgeMIEfflLw/ov1NfUt2iczQ\r
33         7oj/swcmTeN8dFIIze+LXKuIRVJ0NsFc4qT9Q/DkF3c+Gm9quvSst9dZh2aPUXM9OGAv\r
34         OaBw==\r
35 X-Received: by 10.140.22.69 with SMTP id 63mr45538863qgm.23.1407732249090;\r
36         Sun, 10 Aug 2014 21:44:09 -0700 (PDT)\r
37 Received: from localhost (wrls-140-247-19-103.wrls.harvard.edu.\r
38         [140.247.19.103]) by mx.google.com with ESMTPSA id\r
39         n20sm19372053qar.38.2014.08.10.21.44.07 for <notmuch@notmuchmail.org>\r
40         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
41         Sun, 10 Aug 2014 21:44:08 -0700 (PDT)\r
42 Date: Mon, 11 Aug 2014 00:43:54 -0400\r
43 From: Thibaut Horel <thibaut.horel@gmail.com>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH] python: Add binding for notmuch_query_add_tag_exclude\r
46 Message-ID: <20140811044354.GA18790@spoon.client.fas.harvard.edu>\r
47 MIME-Version: 1.0\r
48 Content-Type: text/plain; charset=us-ascii; format=flowed\r
49 Content-Disposition: inline\r
50 User-Agent: Mutt/1.5.23 (2014-03-12)\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Mon, 11 Aug 2014 04:44:17 -0000\r
64 \r
65 Implemented as the method `exclude_tag` of the class `Query`. This method takes\r
66 one argument, a string containing the name of the tag to exclude.\r
67 ---\r
68  NEWS                                  |  5 +++++\r
69  bindings/python/docs/source/query.rst |  2 ++\r
70  bindings/python/notmuch/query.py      | 15 +++++++++++++++\r
71  3 files changed, 22 insertions(+)\r
72 \r
73 diff --git a/NEWS b/NEWS\r
74 index f7aaedf..2d85090 100644\r
75 --- a/NEWS\r
76 +++ b/NEWS\r
77 @@ -22,6 +22,11 @@ from the config file.  Use something like:\r
78        ...\r
79      },\r
80  \r
81 +Python Bindings\r
82 +---------------\r
83 +\r
84 +Add support for `notmuch_query_add_tag_exclude`\r
85 +\r
86  Notmuch 0.18.1 (2014-06-25)\r
87  ===========================\r
88  \r
89 diff --git a/bindings/python/docs/source/query.rst b/bindings/python/docs/source/query.rst\r
90 index ddfc348..044b573 100644\r
91 --- a/bindings/python/docs/source/query.rst\r
92 +++ b/bindings/python/docs/source/query.rst\r
93 @@ -32,6 +32,8 @@\r
94        :attr:`Query.SORT`) if explicitely specified via\r
95        :meth:`set_sort`. By default it is set to `None`.\r
96  \r
97 +   .. automethod:: exclude_tag\r
98 +\r
99     .. automethod:: search_threads\r
100  \r
101     .. automethod:: search_messages\r
102 diff --git a/bindings/python/notmuch/query.py b/bindings/python/notmuch/query.py\r
103 index b11a399..94773ac 100644\r
104 --- a/bindings/python/notmuch/query.py\r
105 +++ b/bindings/python/notmuch/query.py\r
106 @@ -118,6 +118,21 @@ class Query(object):\r
107          self.sort = sort\r
108          self._set_sort(self._query, sort)\r
109  \r
110 +    _exclude_tag = nmlib.notmuch_query_add_tag_exclude\r
111 +    _exclude_tag.argtypes = [NotmuchQueryP, c_char_p]\r
112 +    _exclude_tag.resttype = None\r
113 +\r
114 +    def exclude_tag(self, tagname):\r
115 +        """Add a tag that will be excluded from the query results by default.\r
116 +\r
117 +        This exclusion will be overridden if this tag appears explicitly in the\r
118 +        query.\r
119 +\r
120 +        :param tagname: Name of the tag to be excluded\r
121 +        """\r
122 +        self._assert_query_is_initialized()\r
123 +        self._exclude_tag(self._query, _str(tagname))\r
124 +\r
125      """notmuch_query_search_threads"""\r
126      _search_threads = nmlib.notmuch_query_search_threads\r
127      _search_threads.argtypes = [NotmuchQueryP]\r
128 -- \r
129 2.0.4\r
130 \r