From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QCqxOR7kBWCPTQAA0tVLHw (envelope-from ) for ; Mon, 18 Jan 2021 19:40:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wDSoNR7kBWAWSwAA1q6Kng (envelope-from ) for ; Mon, 18 Jan 2021 19:40:14 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 470E39404E4 for ; Mon, 18 Jan 2021 19:40:14 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 74B6529DE5; Mon, 18 Jan 2021 14:40:07 -0500 (EST) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id C995E28C8F for ; Mon, 18 Jan 2021 14:40:04 -0500 (EST) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 0FAE81B00189; Mon, 18 Jan 2021 21:39:57 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1610998797; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UPGA+elre6QaG8+otdqwMoY88cZaCY946H4janGQrs0=; b=WEuSjgXsDEWzSxavlmwh7zB1a2CzX/pg0Rv78NMfzMe0PXzY8OG0K3+/NVItowM6idD4TU xN4aenw0C36EvWRWjgCyHip2PPFhPrX2osop2gQLWRjYsl6xEONLgvIicPs7FIOC7QSENh tp3J7sZiqWYYUtdAEemo8CyVEs/jE2sp/3XTVthct7Ax3TDUeeWD+21vke6IVqbKmuWeJx 7iLnth59bGJytQWtdiyAQNxCOsnHwd0mAzh99EQFtoZCoWlLfKc/VdeOTP16tE8lJUklrt hQTGWDjgQVTwRzWMeU9N+/TNz7E5DY2H50hoC+QVTlZ/e2fSII3vJraVryss5g== From: Tomi Ollila To: David Edmondson , David Bremner , notmuch@notmuchmail.org Subject: Re: [RFC PATCH] show: Add support for -format=raw -body=false In-Reply-To: References: <20210117183710.29850-1-dme@dme.org> <87mtx6gn97.fsf@tethera.net> <87eeiigkwd.fsf@tethera.net> User-Agent: Notmuch/0.31.3+85~g92bd77f (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1610998797; a=rsa-sha256; cv=none; b=YMiA3XeLiJwBQbkPlEnXZlMc0dkvPidGbxeuH1kLs5KTleYhiE77c5naLVHXMWVfqNVqRb DO7oH/0N7wE1thSt9ZeV/ckLCntP3UG/SNrLixmsNPoy/bpUF2kkLRsrKmHqo8I30gZ0mG nOYZJmNeM8VUiSEj10eyx5LfHdZvGRDMFJxkbwo2erDGkTaAarH4K5XTbBx2O98xxMCjnD QlyGjrJZKu2qe/W6MSusp3SW2bfmQV8jJDa8sYgf2tepz5VPmTATnyvAExd/7/FahrsM4K NhyaL21zosrXHhE8+JD4UQ5ZprINJcCccJtAWkMeDgUMLa2YqAlS24rSr5W1IA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1610998797; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UPGA+elre6QaG8+otdqwMoY88cZaCY946H4janGQrs0=; b=KMKKOZTuCdwh9r7eFntKkkQOuIivKlK6wWJPs3Kyk1qernLGIQhbovRyIP0MrhOfDbrBKk zlOIscZiKWoX6RQR5Nnq72Eh14VywS3YJohIdicRlnirwCsn25lOV5GnQQUIb+7ZRnaiVw rlupXD/WZtncUbHq9gSkIP+KEphI8NsG14rEmZkswSDd8rFvwX/3Ab/78EDO0jY1MC3Bae 5EHp74an+rHYaccWT0zynlgg0e6dsV9avUootMJMTroA1cYsO2TDXeSj7Rix4VoNqKfkpO rlbZfFnQV77ozUskYabKtJQYNy6zRBe2q2Fg6Lnv5L/VIfLTtoVMwhLRY5UxoA== Message-ID-Hash: SXQ6LEZ7N2R2376URR7U3YZER4B6C2PA X-Message-ID-Hash: SXQ6LEZ7N2R2376URR7U3YZER4B6C2PA X-MailFrom: tomi.ollila@iki.fi 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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=WEuSjgXs; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 470E39404E4 X-Spam-Score: 0.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: KKN1ZFG16Bao On Mon, Jan 18 2021, David Edmondson wrote: > On Monday, 2021-01-18 at 14:28:02 -04, David Bremner wrote: > >> David Edmondson writes: >>> Now, it would be nice to be able to say something like... >>> >>> notmuch show --format=sexp --body=false \ >>> --headers=received-by,face,x-face \ >>> id:foo >>> >>> ...to get some extra headers in the sexp output, but I didn't look at it >>> yet. >> >> There was a series at id:20191122230730.35712-2-johan.parin@gmail.com >> that got stalled due to (I think) some issues with passing around >> configuration information. > > I will go and look at this. > >>> The proposed change seems like a simple, obvious improvement that is >>> entirely in-line with the existing interface and implementation. Is >>> there any reason not to do it? >> >> I'm just nervous about more legacy formats. I think we will get the >> arbitrary headers thing working eventually, but I can see it might take >> some time. > > Are we ever likely to get rid of the raw format? I use it quite a bit, > and it seems to be relatively low complexity and simple to support. Now that I tried I kinda like it (and seems useful, which I don't know whether 'text' is). It would also be nice that with raw format more than one message could match (just like text). Also, this --body=false sound good. I looked the patch a bit yesterday, and wondered whether it could be made simpler (or whether it is consistent how that is done in other formats...) Tomi > > dme. > -- > They must have taken my marbles away.