Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 5e / 6b99c33e9897d5238a7d9947f61a1a7c90399f
1 Return-Path: <jani@nikula.org>\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 07655429E25\r
6         for <notmuch@notmuchmail.org>; Fri,  4 Nov 2011 13:25:20 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id Q8HKnwP2mkhP for <notmuch@notmuchmail.org>;\r
16         Fri,  4 Nov 2011 13:25:19 -0700 (PDT)\r
17 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
18         [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 377E7431FB6\r
21         for <notmuch@notmuchmail.org>; Fri,  4 Nov 2011 13:25:19 -0700 (PDT)\r
22 Received: by faan15 with SMTP id n15so52582faa.26\r
23         for <notmuch@notmuchmail.org>; Fri, 04 Nov 2011 13:25:17 -0700 (PDT)\r
24 Received: by 10.223.5.201 with SMTP id 9mr27195270faw.5.1320438317715;\r
25         Fri, 04 Nov 2011 13:25:17 -0700 (PDT)\r
26 Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.\r
27         [80.220.92.23])\r
28         by mx.google.com with ESMTPS id f4sm9920871faj.1.2011.11.04.13.25.16\r
29         (version=SSLv3 cipher=OTHER); Fri, 04 Nov 2011 13:25:16 -0700 (PDT)\r
30 From: Jani Nikula <jani@nikula.org>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [PATCH v3 0/7] lib/cli/emacs: limit number of messages in search\r
33         results\r
34 Date: Fri,  4 Nov 2011 22:25:08 +0200\r
35 Message-Id: <cover.1320349030.git.jani@nikula.org>\r
36 X-Mailer: git-send-email 1.7.5.4\r
37 Cc: amdragon@mit.edu\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Fri, 04 Nov 2011 20:25:20 -0000\r
51 \r
52 Hi, here's the third version of my output limiting patches.\r
53 \r
54 Changes since v2 (id:"cover.1320093940.git.jani@nikula.org"):\r
55 \r
56 * lib: use NOTMUCH_SORT_UNSORTED for notmuch_query_count_threads() query\r
57 \r
58 * cli: maxitems=0 doesn't output anything (previously it was unlimited)\r
59 \r
60 * cli: add --output=threads support for notmuch count\r
61 \r
62 * cli: some minor cleanups\r
63 \r
64 * test: add tests for notmuch count and search with limits\r
65 \r
66 Unfortunately I noticed patch 7 is BROKEN, but I'm sending these now anyway\r
67 because I think patches 1-6 are good stuff and I don't have the time to fix 7\r
68 for some days.\r
69 \r
70 \r
71 BR,\r
72 Jani.\r
73 \r
74 PS. This is broken in patch 7:\r
75 \r
76 +                    (if (and maxitems (< 0 maxitems))\r
77 +                        (if oldest-first\r
78 +                            (format "--first=-%d" maxitems)\r
79 +                          (format "--maxitems=%d" maxitems))\r
80 +                      "")\r
81 \r
82 It should produce neither nil nor "" when (and maxitems (< 0 maxitems)) is nil.\r
83 \r
84 \r
85 Jani Nikula (7):\r
86   lib: add function to get the number of threads matching a search\r
87   cli: add options --first and --maxitems to notmuch search\r
88   cli: drop unused code from notmuch count\r
89   cli: add support for --output parameter in notmuch count\r
90   test: add tests for notmuch count\r
91   test: add tests for notmuch search --first and --maxitems\r
92   emacs: support limiting the number of results shown in search results\r
93 \r
94  emacs/notmuch-hello.el |   17 +++++++++--\r
95  emacs/notmuch.el       |   53 ++++++++++++++++++++++++++++++++---\r
96  lib/notmuch.h          |   14 +++++++++\r
97  lib/query.cc           |   44 +++++++++++++++++++++++++++++\r
98  notmuch-count.c        |   44 +++++++++---------------------\r
99  notmuch-search.c       |   70 +++++++++++++++++++++++++++++++++++++++--------\r
100  test/count             |   40 +++++++++++++++++++++++++++\r
101  test/notmuch-test      |    2 +\r
102  test/search-limiting   |   71 ++++++++++++++++++++++++++++++++++++++++++++++++\r
103  9 files changed, 304 insertions(+), 51 deletions(-)\r
104  create mode 100755 test/count\r
105  create mode 100755 test/search-limiting\r
106 \r
107 -- \r
108 1.7.5.4\r
109 \r