From: Gaute Hope <eg@gaute.vetsj.com>
To: supmua <supmua@googlegroups.com>, Mike Cooper <mythmon@gmail.com>
Subject: Re: [sup] Header search?
Date: Tue, 18 Nov 2014 08:53:59 +0000 [thread overview]
Message-ID: <1416300167-astroid-0-oirmthc8of-1578@strange> (raw)
In-Reply-To: <1416288595-sup-517@carbon>
Excerpts from Mike Cooper's message of November 18, 2014 6:33:
> Is it possible to search (using backslash) on arbitrary headers? For
> example, I'd like to have a saved search based on a header called
> X-Bugzilla-Product. I doubt that would be indexed by any indexer that
> only picks up certain fields.
>
> I could achieve this with a hook that adds labels to incoming messages,
> but it doesn't help all the old emails I have. I can't find a way to
> re-run a hook on messages already in my index.
The headers are not indexed as far as I know. You could try your label
approach, to run through all existing messages (or a query) you could
either check out the sup console (press ~), do a query, check if the
message header matches your criteria, then add label (can also be
done from the devel/console [1]). Or I think it should be possible to
backup labels [2], delete index, reindex and restore labels - check out
sup-dump, sup-import-dump, sup-sync.
- gaute
[1] https://github.com/sup-heliotrope/sup/issues/272#issuecomment-38586228
or https://github.com/sup-heliotrope/sup/issues/225#issuecomment-34731624
[2] https://github.com/sup-heliotrope/sup/wiki/Backing-up-the-index
prev parent reply other threads:[~2014-11-18 8:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-18 5:33 Mike Cooper
2014-11-18 6:04 ` [sup] " Ruthard Baudach
2014-11-18 8:53 ` Gaute Hope [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=1416300167-astroid-0-oirmthc8of-1578@strange \
--to=eg@gaute.vetsj.com \
--cc=mythmon@gmail.com \
--cc=supmua@googlegroups.com \
/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