Re: Formatting nm-search output

Subject: Re: Formatting nm-search output

Date: Thu, 18 Aug 2022 07:53:21 -0700

To: martin f krafft, notmuch discussion list

Cc:

From: David Bremner


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
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: