unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: Olaf TNSB <still.another.person@gmail.com>, notmuch@notmuchmail.org
Subject: Re: Add (extracted) attachment text to the search index?
Date: Wed, 01 Mar 2017 07:34:39 -0400	[thread overview]
Message-ID: <87inntut68.fsf@tethera.net> (raw)
In-Reply-To: <CABDMPboL-XY3f=opg0rw8i52Zgo=Qfh5da38SehdF19J-S9s-w@mail.gmail.com>

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

> HI,
>
> I was wondering if it was possible to add the text extracted from an
> attachment to the search index?
>
> For the moment let's leave aside the important issues like - security,
> buffer overflows, clients having to install
> doc2text/pandoc/pdftotext/whatever...
>
>
> I *think* I'm trying to ask - How can I take a lump of text (e.g. from an
> attachment) and associate it with a message ID so I can then search for it?
>
> Is this a notmuch command, or a Xapien command?

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.

d

  reply	other threads:[~2017-03-01 11:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-01  2:58 Add (extracted) attachment text to the search index? Olaf TNSB
2017-03-01 11:34 ` David Bremner [this message]
2017-03-01 17:55   ` Steven Allen
2017-03-01 22:45     ` Olaf TNSB
2017-03-02  0:41       ` David Bremner
2017-03-02  0:55         ` Olaf TNSB

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87inntut68.fsf@tethera.net \
    --to=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=still.another.person@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).