From: William Morgan <wmorgan-sup@masanjin.net>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] How to ignore some mails in searches?
Date: Tue, 26 Jan 2010 12:42:11 -0500 [thread overview]
Message-ID: <1264527560-sup-1799@masanjin.net> (raw)
In-Reply-To: <1264525600-sup-2804@sam.mediasupervision.de>
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 <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next prev parent reply other threads:[~2010-01-26 17:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 17:17 Gregor Hoffleit
2010-01-26 17:42 ` William Morgan [this message]
2010-01-27 11:57 ` Gregor Hoffleit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1264527560-sup-1799@masanjin.net \
--to=wmorgan-sup@masanjin.net \
--cc=sup-talk@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox