From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.28.69 with SMTP id l5cs181458ebc; Tue, 26 Jan 2010 09:43:01 -0800 (PST) Received: by 10.90.22.33 with SMTP id 33mr7209778agv.104.1264527777538; Tue, 26 Jan 2010 09:42:57 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 26si1761888gxk.36.2010.01.26.09.42.57; Tue, 26 Jan 2010 09:42:57 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 6EBE9185830D; Tue, 26 Jan 2010 12:42:56 -0500 (EST) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id 656481858304 for ; Tue, 26 Jan 2010 12:42:11 -0500 (EST) Received: from w by entry.masanjin.net with local (Exim 4.69) (envelope-from ) id 1NZpQZ-0000Pm-3C for sup-talk@rubyforge.org; Tue, 26 Jan 2010 12:42:11 -0500 From: William Morgan To: sup-talk In-reply-to: <1264525600-sup-2804@sam.mediasupervision.de> References: <1264525600-sup-2804@sam.mediasupervision.de> Date: Tue, 26 Jan 2010 12:42:11 -0500 Message-Id: <1264527560-sup-1799@masanjin.net> User-Agent: Sup/git Subject: Re: [sup-talk] How to ignore some mails in searches? X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Reformatted excerpts from Gregor Hoffleit's message of 2010-01-26: > Now I could just add '-label:cronjob' to any search, but that tedious. > I'd like to filter out those mails by default, but still being able to > include them in a search, if I want to. > > That sounds a lot like the semantics of the 'Spam' reserved label, but > without Spam in it ;-) > > I guess there is some easy solution I'm missing!? You can use the custom-search hook to accomplish this. For complicated reasons, it doesn't show up in `sup -l` right now, but here's the docs: Executes before a string search is applied to the index, returning a new search string. Variables: subs: The string being searched. I would try something like subs =~ /label:cronjob/ ? subs : subs + " -label:cronjob" Which will automatically add that search term unless the query already contains it. -- William _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk