Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 1c / ec8c396d98e01e547fc69c51ee7f5ed511eb6a
1 Return-Path: <sebastian.fischmeister@uwaterloo.ca>\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 arlo.cworth.org (Postfix) with ESMTP id BC2596DE1B73\r
6  for <notmuch@notmuchmail.org>; Sun,  5 Apr 2015 18:29:49 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.251\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.251 tagged_above=-999 required=5 tests=[AWL=1.620,\r
12   RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,\r
13  RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id xeF7GnmDqCJN for <notmuch@notmuchmail.org>;\r
17  Sun,  5 Apr 2015 18:29:44 -0700 (PDT)\r
18 X-Greylist: delayed 969 seconds by postgrey-1.35 at arlo;\r
19  Sun, 05 Apr 2015 18:29:44 PDT\r
20 Received: from mailchk-m01.uwaterloo.ca (mailservices.uwaterloo.ca\r
21  [129.97.128.141])\r
22  by arlo.cworth.org (Postfix) with ESMTPS id 080C96DE1B7F\r
23  for <notmuch@notmuchmail.org>; Sun,  5 Apr 2015 18:29:43 -0700 (PDT)\r
24 Received: from connect.uwaterloo.ca (connhub1.connect.uwaterloo.ca\r
25  [129.97.149.113])\r
26  by mailchk-m01.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id t361DTA4016758\r
27  (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK)\r
28  for <notmuch@notmuchmail.org>; Sun, 5 Apr 2015 21:13:31 -0400\r
29 Received: from CONNHUB4.connect.uwaterloo.ca (129.97.149.122) by\r
30  connhub1.connect.uwaterloo.ca (129.97.149.113) with Microsoft SMTP Server\r
31  (TLS) id 14.3.210.2; Sun, 5 Apr 2015 21:13:29 -0400\r
32 Received: from uwaterloo.ca (172.16.36.43) by connhub4.connect.uwaterloo.ca\r
33  (129.97.149.122) with Microsoft SMTP Server (TLS) id 14.3.210.2; Sun, 5 Apr\r
34  2015 21:13:28 -0400\r
35 From: Sebastian Fischmeister <sfischme@uwaterloo.ca>\r
36 To: notmuch <notmuch@notmuchmail.org>\r
37 Subject: [PATCH] custom search prefix\r
38 Reply-To: <sfischme@uwaterloo.ca>\r
39 X-Homepage: http://esg.uwaterloo.ca\r
40 Date: Sun, 5 Apr 2015 21:13:28 -0400\r
41 Message-ID: <87pp7iqcvk.fsf@uwaterloo.ca>\r
42 MIME-Version: 1.0\r
43 Content-Type: text/plain\r
44 X-UUID: 392cf0c3-3c7b-4ff8-bdaa-282fbf0eee8f\r
45 X-Miltered: at mailchk-m01 with ID 5521DDB9.000 by Joe's j-chkmail\r
46  (http://j-chkmail.ensmp.fr)!\r
47 X-Virus-Scanned: clamav-milter 0.98.6 at mailchk-m01\r
48 X-Virus-Status: Clean\r
49 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3\r
50  (mailchk-m01.uwaterloo.ca [129.97.128.141]);\r
51  Sun, 05 Apr 2015 21:13:31 -0400 (EDT)\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.18\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56  <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Mon, 06 Apr 2015 01:29:49 -0000\r
65 \r
66 \r
67 Hi,\r
68 \r
69 I found this handy to provide a specific prefix for searches. For\r
70 example, when you always want to search only the last 2 years of emails,\r
71 then you can set the variable notmuch-query-prefix to "date:2y..now ".\r
72 \r
73   Sebastian\r
74 \r
75 \r
76 Sebastian Fischmeister (1):\r
77   custom prefix\r
78 \r
79  emacs/notmuch.el | 8 +++++++-\r
80  1 file changed, 7 insertions(+), 1 deletion(-)\r
81 \r
82 -- \r
83 2.3.5\r