Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 03 / 89471090fccd34cfe18c3a200b5f7d86047344
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 3FD31431FD0\r
6         for <notmuch@notmuchmail.org>; Mon, 31 Oct 2011 14:18:16 -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 RjB-SqlE6PwI for <notmuch@notmuchmail.org>;\r
16         Mon, 31 Oct 2011 14:18:15 -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 84BDF431FB6\r
21         for <notmuch@notmuchmail.org>; Mon, 31 Oct 2011 14:18:15 -0700 (PDT)\r
22 Received: by faai28 with SMTP id i28so6745606faa.26\r
23         for <notmuch@notmuchmail.org>; Mon, 31 Oct 2011 14:18:14 -0700 (PDT)\r
24 Received: by 10.223.5.66 with SMTP id 2mr31781096fau.26.1320095894232;\r
25         Mon, 31 Oct 2011 14:18:14 -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 i3sm1966222faf.0.2011.10.31.14.18.11\r
29         (version=SSLv3 cipher=OTHER); Mon, 31 Oct 2011 14:18:12 -0700 (PDT)\r
30 From: Jani Nikula <jani@nikula.org>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [RFC PATCH v2 0/3] lib/cli/emacs: limit number of messages in search\r
33         results\r
34 Date: Mon, 31 Oct 2011 23:18:07 +0200\r
35 Message-Id: <cover.1320093940.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: Mon, 31 Oct 2011 21:18:16 -0000\r
51 \r
52 Hi, this is an iteration of id:"cover.1319833617.git.jani@nikula.org" addressing\r
53 comments on the list and IRC. Main changes:\r
54 \r
55 * Results are now limited based on threads (not messages) for thread and summary\r
56   output. This is accomplished with a new lib function to count the number of\r
57   threads in matching messages.\r
58 \r
59 * cli part is now inspired by James Vasile's patch\r
60   id:"8739gyw0zh.fsf@opensourcematters.org", with the additional ability to\r
61   limit from the end of result set.\r
62 \r
63 * Bugs reported by Daniel Schoepe fixed.\r
64 \r
65 * Don't show buttons if everything is visible already.\r
66 \r
67 I'm still marking it as RFC. It works for me, but patch 1 might be deemed\r
68 unacceptable.\r
69 \r
70 \r
71 BR,\r
72 Jani.\r
73 \r
74 \r
75 Jani Nikula (3):\r
76   lib: add function to get the number of threads matching a search\r
77   cli: add options --first and --maxitems to notmuch search\r
78   emacs: support limiting the number of results shown in search results\r
79 \r
80  emacs/notmuch-hello.el |   17 ++++++++++--\r
81  emacs/notmuch.el       |   53 ++++++++++++++++++++++++++++++++++---\r
82  lib/notmuch.h          |   14 ++++++++++\r
83  lib/query.cc           |   40 ++++++++++++++++++++++++++++\r
84  notmuch-search.c       |   67 +++++++++++++++++++++++++++++++++++++++--------\r
85  5 files changed, 171 insertions(+), 20 deletions(-)\r
86 \r
87 -- \r
88 1.7.5.4\r
89 \r