[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sup-talk] How to ignore some mails in searches?
* William Morgan <wmorgan-sup@masanjin.net> [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