On Tue, Feb 12, 2013 at 09:03:01AM -0800, Jameson Graef Rollins wrote: > On Tue, Feb 12 2013, David Bremner <david@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.