Search using email headers does not work

Michal Vyskocil mvyskocil at suse.cz
Tue Feb 12 09:32:16 PST 2013


On Tue, Feb 12, 2013 at 09:03:01AM -0800, Jameson Graef Rollins wrote:
> On Tue, Feb 12 2013, David Bremner <david at tethera.net> wrote:
> > Unfortunately currently headers other than those references in the
> > notmuch-search-terms man page are not indexed.  The only workaround I
> > can think of without patching notmuch is to use some tool to tag the
> > messages you care about.
> 
> I think even more importantly headers other than those that are parsed
> are actually thrown to /dev/null.  They are not even indexed as plain
> text, so you can search for terms in headers as you can for words in the
> body.
> 
> I asked this on irc but it got lost in the shuffle: would it make sense
> to index the entire header block as plain text?  If we did that then at
> least the search that Michal was trying would return the expected
> results.  It would also be a fairly simple change to the indexer.  I
> don't have a good sense of how much it would pollute the index, though.

[skipping CC line and sending to list]

Hi,

I like such idea - but how hard would be to add a config options to
extend a list of default headers used for indexing? I am not sure there
is a strong need to index every bit from headers, just add few tips to
the default list.

Regards
Michal Vyskocil

> 
> Given how frequently people are asking for alternate header indexing, it
> might be something to consider.
> 
> jamie.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130212/3a736e1a/attachment.pgp>


More information about the notmuch mailing list