Add (extracted) attachment text to the search index?

David Bremner david at tethera.net
Wed Mar 1 16:41:51 PST 2017


Olaf TNSB <still.another.person at gmail.com> writes:

> On Thu, Mar 2, 2017 at 4:55 AM, Steven Allen <steven at stebalien.com> wrote:
>>
>>
>> David Bremner <david at tethera.net> writes:
>> > This would require some modifications of notmuch. Either modifying
>> > lib/index.cc to add the terms at indexing (notmuch new/insert) time, or
>> > providing some way of adding the terms later. The former actually sounds
>> > simpler to me.
>>
>> To do this correctly, you'd want to be able to run an external text
>> extraction tool (for PDFs, word documents, etc.) so I think the latter
>> would be better in the long run (it would allow the user to index
>> attachments in the hooks).
>
> (As a non-dev...) I agree.  The ability to add (and delete!) content
> post-insert sounds more desirable.  I don't want to have to re-index all my
> email as the next version of <horrible-binary-object>-to-text gets
> released.  I'd like to be able to (search-for-attachment)-(delete)-(re-add).

There has been some patches (related to encrypted email), that reindex
individual messages. So that would be a clean fix for that. I haven't
really thought about reindexing parts of messages, which is what seems
to be the proposal here.

d


More information about the notmuch mailing list