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 <[email protected]>
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk