From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4C2jEmpS/mJPWwEAbAwnHQ (envelope-from ) for ; Thu, 18 Aug 2022 16:53:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ON6fEmpS/mK6KQAAauVa8A (envelope-from ) for ; Thu, 18 Aug 2022 16:53:30 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E26753860B for ; Thu, 18 Aug 2022 16:53:29 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1E2275FD37; Thu, 18 Aug 2022 14:53:27 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 090475F36F for ; Thu, 18 Aug 2022 14:53:25 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id EF2A15FBC0; Thu, 18 Aug 2022 10:53:23 -0400 (EDT) Received: (nullmailer pid 10092 invoked by uid 1000); Thu, 18 Aug 2022 14:53:21 -0000 From: David Bremner To: martin f krafft , notmuch discussion list Subject: Re: Formatting nm-search output In-Reply-To: References: Date: Thu, 18 Aug 2022 07:53:21 -0700 Message-ID: <87tu69bo2m.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 3SFSFS7O4NXH4YUA26ZMHGHANL3CIRPY X-Message-ID-Hash: 3SFSFS7O4NXH4YUA26ZMHGHANL3CIRPY X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660834410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=DI9ik2MIh4Il9mx5ziNCjG9G/eqcU+ohJZAikkuHNFU=; b=Asq4CozyjbJDJqBPhcDbJYsG66SQse6xUDjkNoeMMMdT5VAMT9cg1ipNw0XI5obrZGhjsq aokBqqofqEp/05LtYwe14VWm2nO0pyID8akJfWnXBYgZlSeUo5yPaTWEr39Qh6dTM1gAHN C68WG8FK9sTqXb6NNvKlwJRgyfUUS+jtsU/XHYTuVDY+O4z75WEnMDN7vlOxqGM/aISmwc Y/uPNSuNO+oKiUoeXGsFqEy497myIEuBSVuIzZ3Q3yeit+PFJSyi/9BQBN0F7I5oFssHBb F47qMXVKM324dsZtMgi6P9MyNw7cQ7EmbmJQZWkPSKSe+O/b6EQT48oJwQlFgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660834410; a=rsa-sha256; cv=none; b=OJJ8JBiNqc7FXaZlyPTJ9fml2KCL5F0uKhiK3Kcc0qImSQi20aQ3iRAOzsa5LFg/1MM7s3 yzhgYm40ot33MmS/IF4O9NNUh9tVXugXYVvKxm0sTpD1aSsYBZI4kn7bpULVv5yRQKBz0a vE/6HS5SZZdlrVv0ZJ3lXbsEg5eUm0N3uctBs/mtZ4cMcXMV32vHJ6QHvlnvUOkWJygtZx kw2QQKC6kq3iOHfqUPgsoZ8tdBX3gQkPJUP6MDf3h1rP30sGTpUK9ZMv286+V3mZmv0NwI 3pg6U0uaZBp56KAE3Jq4S2maxN0kiZ69obC2PpHuw8FGs+oKmHZJkCpYxINS1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: E26753860B X-Spam-Score: -1.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: bPHckB7xV7Ba martin f krafft 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