Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: Notmuch as search engine
Date: Tue, 12 Apr 2022 10:33:17 -0700	[thread overview]
Message-ID: <87v8ve436q.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87y20acl6b.fsf@laymusic.org>

Laura Conrad <lconrad@laymusic.org> writes:

> I am indexing my  mail directory with "notmuch new", and when I search
> from the command line, I can get the amount of hits that I would
> expect.  However, the format they're in doesn't seem to be what I would
> expect, and I can't find the mail file from them, and neither can gnus.
>
> The command line search returns something like:
>
> notmuch search scuttle
> thread:00000000000208d9  Today 00:11 [5/7] Laura Conrad, Alan Zhou, Zeke
> Kaufman, Daniel Tate| Sandra Patterson; Board decision (attachment inbox
> unread)
>
> And what gnus tells me when I do "G G" is:
>
> gnus-select-newsgroup: Couldn’t request group nnir:nnir-87zgkqclfi.fsf:
> Search produced empty results.
>
> I would expect this to be /home/lconrad/Mail/sent/32974, but I don't see
> how either I or gnus could figure that out from the notmuch output.
>
> Am I running notmuch wrong?  Lots of people (including people on this
> list) seem to be using it with gnus, so it must be possible.

The format of notmuch's search results depends on the switches it is
called with. If you use "--output=files" it will give you filenames.

I'm curious how you're using notmuch from within Gnus. Both the "old"
nnir library and the "new" gnus-search library know to use the correct
--output switch. What version of Emacs/Gnus are you using?

Eric



      reply	other threads:[~2022-04-12 17:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-12 16:37 Laura Conrad
2022-04-12 17:33 ` Eric Abrahamsen [this message]

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

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

  git send-email \
    --in-reply-to=87v8ve436q.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    /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.
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 NNTP newsgroup(s).