Discussions of development and use of the Sup email client
 help / color / mirror / Atom feed
* Header search?
@ 2014-11-18  5:33 Mike Cooper
  2014-11-18  6:04 ` [sup] " Ruthard Baudach
  2014-11-18  8:53 ` Gaute Hope
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Cooper @ 2014-11-18  5:33 UTC (permalink / raw)
  To: supmua

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.

Thanks,
--Mike


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sup] Header search?
  2014-11-18  5:33 Header search? Mike Cooper
@ 2014-11-18  6:04 ` Ruthard Baudach
  2014-11-18  8:53 ` Gaute Hope
  1 sibling, 0 replies; 3+ messages in thread
From: Ruthard Baudach @ 2014-11-18  6:04 UTC (permalink / raw)
  To: supmua

[-- Attachment #1: Type: text/plain, Size: 830 bytes --]

>== Auszüge aus der Nachricht von  Mike Cooper vom 2014-11-18 06: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.
> 
> Thanks,
> --Mike
> 

Have a look on sup-tweak-labels (help as usually by running
sup-tweak-labels -h). Would be a good idea to add sections on the sup
helpers to the wiki that are mor verbose than the man pages.

Regards,

Ruthard

-- 

Please encrypt and sign emails.
My PGP-Id: AC5AC6C2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sup] Header search?
  2014-11-18  5:33 Header search? Mike Cooper
  2014-11-18  6:04 ` [sup] " Ruthard Baudach
@ 2014-11-18  8:53 ` Gaute Hope
  1 sibling, 0 replies; 3+ messages in thread
From: Gaute Hope @ 2014-11-18  8:53 UTC (permalink / raw)
  To: supmua, Mike Cooper

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-18 19:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18  5:33 Header search? Mike Cooper
2014-11-18  6:04 ` [sup] " Ruthard Baudach
2014-11-18  8:53 ` Gaute Hope

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox