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