From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.28.69 with SMTP id l5cs241323ebc; Wed, 27 Jan 2010 03:57:49 -0800 (PST) Received: by 10.101.6.22 with SMTP id j22mr11658804ani.224.1264593468628; Wed, 27 Jan 2010 03:57:48 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 19si4038863gxk.48.2010.01.27.03.57.48; Wed, 27 Jan 2010 03:57:48 -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 E80603C804B; Wed, 27 Jan 2010 06:57:47 -0500 (EST) Received: from sam.mediasupervision.de (sam.mediasupervision.de [80.152.3.104]) by rubyforge.org (Postfix) with ESMTP id 767AD1858308 for ; Wed, 27 Jan 2010 06:57:28 -0500 (EST) Received: from localhost (sam.mediasupervision.de [127.0.0.1]) by sam.mediasupervision.de (Postfix) with ESMTP id A75A8485BE6 for ; Wed, 27 Jan 2010 12:57:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at sam.mediasupervision.de Received: from sam.mediasupervision.de ([127.0.0.1]) by localhost (sam.mediasupervision.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id knCqi9tP12KP for ; Wed, 27 Jan 2010 12:57:27 +0100 (CET) Received: by sam.mediasupervision.de (Postfix, from userid 1000) id 8B088485C78; Wed, 27 Jan 2010 12:57:27 +0100 (CET) From: Gregor Hoffleit To: sup-talk In-reply-to: <1264527560-sup-1799@masanjin.net> References: <1264525600-sup-2804@sam.mediasupervision.de> <1264527560-sup-1799@masanjin.net> Date: Wed, 27 Jan 2010 12:57:27 +0100 Message-Id: <1264592858-sup-9758@sam.mediasupervision.de> 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 * William Morgan [Di Jan 26 18:42:11 +0100 2010] > 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. Ah, that's fine! One last thing, though: Provided the setup above, how can I search through all threads, regardless of the label cronjob? Is there any easy way? - "stupid" will ignore cronjobs - "stupid label:cronjob" will only return cronjobs - "label:cronjob || -label:cronjob stupid" doesn't seem to work Regards, Gregor _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk