How to index arbitrary headers?

Dmitrijs Ledkovs xnox at debian.org
Thu Oct 4 09:25:08 PDT 2012


On 4 October 2012 13:51, Nicolás Reynolds <fauno at kiwwwi.com.ar> wrote:
> Austin Clements <amdragon at MIT.EDU> writes:
>
>> Quoth Petri Savolainen on Oct 01 at  3:39 pm:
>>>    Hello,
>>>    I could not find information anywhere in notmuch docs about what is
>>>    actually indexed - specifically, what email headers are indexed and
>>>    searchable? If a header is not indexed, does searching for its value still
>>>    result in a search hit?
>>>    It would be nice if one could just provide the list of headers to be
>>>    indexed in some configuration file or something.
>>>    Thanks,
>>>     Petri
>>
>> notmuch doesn't currently implement this, though it is an
>> oft-requested feature.  One (not insurmountable) difficulty is that
>> the database would have to be rebuilt if a user-configured list of
>> headers changed and there are technical limitations that prevent us
>> from simply indexing all headers.  Out of curiosity, what headers are
>> you interested in indexing?
>>
>> The currently indexed headers are described in man
>> notmuch-search-terms.
>
> maybe related: is it possible to index only the headers and not the mail
> body?
>

Checkout project `afew` which pipes complete emails and assigns tags
based on the parse result.
It may be sufficient for your purpose.
Or you can modify notmuch to index the stuff you want.

Regards,

Dmitrijs.


More information about the notmuch mailing list