unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
To: notmuch@notmuchmail.org
Subject: Add support for `thread` field in `notmuch show`
Date: Wed, 29 Apr 2020 19:18:56 +0300	[thread overview]
Message-ID: <CA+Tk8fwaFZrX6DkkjLsoS7DQsJQM=sb9gOXxhOGTcW50G4CuyQ@mail.gmail.com> (raw)

According to the `devel/schemata` the message object doesn't contain
the thread identifier to which it was assigned in the database.

Sometimes, for example in an UI that displays a search result at
message level, it would be useful to know the thread each message
belongs to, so the user can easily switch to the entire thread.

I know that one can use `thread:{id:MESSAGE_ID}` to achieve the same
result, however:
* it is somewhat cumbersome for the integrator;
* having the thread identifier explicitly, could be used as a key in a
cache, or other internal lookups;

In fact the only way one can extract the thread identifier via the
`notmuch` CLI is to use `notmuch search --output=threads --
id:MESSAGE_ID`

Ciprian.

             reply	other threads:[~2020-04-29 16:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-29 16:18 Ciprian Dorin Craciun [this message]
2020-05-01 12:09 ` Add support for `thread` field in `notmuch show` David Bremner
2020-05-01 12:14   ` David Bremner
2020-05-01 12:17   ` Ciprian Dorin Craciun

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='CA+Tk8fwaFZrX6DkkjLsoS7DQsJQM=sb9gOXxhOGTcW50G4CuyQ@mail.gmail.com' \
    --to=ciprian.craciun@gmail.com \
    --cc=notmuch@notmuchmail.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.
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).