From: David Bremner <david@tethera.net>
To: martin f krafft <madduck@madduck.net>,
notmuch discussion list <notmuch@notmuchmail.org>
Subject: Re: Formatting nm-search output
Date: Thu, 18 Aug 2022 07:53:21 -0700 [thread overview]
Message-ID: <87tu69bo2m.fsf@tethera.net> (raw)
In-Reply-To: <Yv3/49qZzAYhmanm@albatross.lehel.madduck.net>
martin f krafft <madduck@madduck.net> writes:
> Is there a way to get notmuch search to print custom fields for the
> messages it returns, i.e. if I wanted to get a list of messages (not
> threads) matching my search terms, along with e.g. date, subject,
> from/to/cc, and body size?
Hi Martin;
Currently the short answer is no. There are several possible
workarounds.
1) Use the (apparently undocumented!) --unthreaded option to notmuch
show and then postprocess the json output
2) write a python script (using the notmuch2 module).
I have thought about having some custom output formatting (probably
based on some sexp dsl, since the code already uses sfsexp for query
parsing) but I apparently it never got farther than thinking.
d
prev parent reply other threads:[~2022-08-18 14:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-18 9:01 Formatting nm-search output martin f krafft
2022-08-18 14:53 ` David Bremner [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
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=87tu69bo2m.fsf@tethera.net \
--to=david@tethera.net \
--cc=madduck@madduck.net \
--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).