[PATCH] custom search prefix
authorSebastian Fischmeister <sfischme@uwaterloo.ca>
Mon, 6 Apr 2015 01:13:28 +0000 (21:13 +2000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:43 +0000 (14:48 -0700)
1c/ec8c396d98e01e547fc69c51ee7f5ed511eb6a [new file with mode: 0644]

diff --git a/1c/ec8c396d98e01e547fc69c51ee7f5ed511eb6a b/1c/ec8c396d98e01e547fc69c51ee7f5ed511eb6a
new file mode 100644 (file)
index 0000000..2cbdd11
--- /dev/null
@@ -0,0 +1,83 @@
+Return-Path: <sebastian.fischmeister@uwaterloo.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id BC2596DE1B73\r
+ for <notmuch@notmuchmail.org>; Sun,  5 Apr 2015 18:29:49 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.251\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.251 tagged_above=-999 required=5 tests=[AWL=1.620,\r
+  RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,\r
+ RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id xeF7GnmDqCJN for <notmuch@notmuchmail.org>;\r
+ Sun,  5 Apr 2015 18:29:44 -0700 (PDT)\r
+X-Greylist: delayed 969 seconds by postgrey-1.35 at arlo;\r
+ Sun, 05 Apr 2015 18:29:44 PDT\r
+Received: from mailchk-m01.uwaterloo.ca (mailservices.uwaterloo.ca\r
+ [129.97.128.141])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 080C96DE1B7F\r
+ for <notmuch@notmuchmail.org>; Sun,  5 Apr 2015 18:29:43 -0700 (PDT)\r
+Received: from connect.uwaterloo.ca (connhub1.connect.uwaterloo.ca\r
+ [129.97.149.113])\r
+ by mailchk-m01.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id t361DTA4016758\r
+ (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK)\r
+ for <notmuch@notmuchmail.org>; Sun, 5 Apr 2015 21:13:31 -0400\r
+Received: from CONNHUB4.connect.uwaterloo.ca (129.97.149.122) by\r
+ connhub1.connect.uwaterloo.ca (129.97.149.113) with Microsoft SMTP Server\r
+ (TLS) id 14.3.210.2; Sun, 5 Apr 2015 21:13:29 -0400\r
+Received: from uwaterloo.ca (172.16.36.43) by connhub4.connect.uwaterloo.ca\r
+ (129.97.149.122) with Microsoft SMTP Server (TLS) id 14.3.210.2; Sun, 5 Apr\r
+ 2015 21:13:28 -0400\r
+From: Sebastian Fischmeister <sfischme@uwaterloo.ca>\r
+To: notmuch <notmuch@notmuchmail.org>\r
+Subject: [PATCH] custom search prefix\r
+Reply-To: <sfischme@uwaterloo.ca>\r
+X-Homepage: http://esg.uwaterloo.ca\r
+Date: Sun, 5 Apr 2015 21:13:28 -0400\r
+Message-ID: <87pp7iqcvk.fsf@uwaterloo.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-UUID: 392cf0c3-3c7b-4ff8-bdaa-282fbf0eee8f\r
+X-Miltered: at mailchk-m01 with ID 5521DDB9.000 by Joe's j-chkmail\r
+ (http://j-chkmail.ensmp.fr)!\r
+X-Virus-Scanned: clamav-milter 0.98.6 at mailchk-m01\r
+X-Virus-Status: Clean\r
+X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3\r
+ (mailchk-m01.uwaterloo.ca [129.97.128.141]);\r
+ Sun, 05 Apr 2015 21:13:31 -0400 (EDT)\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 06 Apr 2015 01:29:49 -0000\r
+\r
+\r
+Hi,\r
+\r
+I found this handy to provide a specific prefix for searches. For\r
+example, when you always want to search only the last 2 years of emails,\r
+then you can set the variable notmuch-query-prefix to "date:2y..now ".\r
+\r
+  Sebastian\r
+\r
+\r
+Sebastian Fischmeister (1):\r
+  custom prefix\r
+\r
+ emacs/notmuch.el | 8 +++++++-\r
+ 1 file changed, 7 insertions(+), 1 deletion(-)\r
+\r
+-- \r
+2.3.5\r