Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Gregor Hoffleit <gregor@hoffleit.de>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] How to ignore some mails in searches?
Date: Wed, 27 Jan 2010 12:57:27 +0100	[thread overview]
Message-ID: <1264592858-sup-9758@sam.mediasupervision.de> (raw)
In-Reply-To: <1264527560-sup-1799@masanjin.net>

* 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


      reply	other threads:[~2010-01-27 11:57 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
2010-01-27 11:57   ` Gregor Hoffleit [this message]

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=1264592858-sup-9758@sam.mediasupervision.de \
    --to=gregor@hoffleit.de \
    --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