From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yDixDBsI42DEfAAAgWs5BA (envelope-from ) for ; Mon, 05 Jul 2021 15:24:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mKRlCBsI42BcAQAA1q6Kng (envelope-from ) for ; Mon, 05 Jul 2021 13:24:43 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 995DAEB81 for ; Mon, 5 Jul 2021 15:24:42 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id C71FF29083; Mon, 5 Jul 2021 09:24:37 -0400 (EDT) Received: from quimby.gnus.org (quimby.gnus.org [IPv6:2a01:4f9:2b:f0f::2]) by mail.notmuchmail.org (Postfix) with ESMTPS id 574E129081 for ; Mon, 5 Jul 2021 09:24:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ET214X3w/SAsLNtiMmMq/AvE8/KfDksFuId1fqqRhJ4=; b=NG0i7GhgP9JTGJMJ6xlQufLlPY /+SR4bw5f1upifUDNWUNJiKTg+bP8kyZecKvk07fIo+jwu+4mT+Ub6DwbaAMNaGK0xxYIZ+sgfnUG mffSNT0NAjV38tQ9cAGUONqbP4JnVlUnxfTjlgiBdVm2Ksj0hIiHw/vZvJij0N4Gvrgs=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0OaK-0004cC-8M; Mon, 05 Jul 2021 15:24:30 +0200 From: Lars Ingebrigtsen To: David Bremner Subject: Re: bug#49380: 27.1; is mm-inline-message supported outside Gnus? References: <87sg0u6wcb.fsf@tethera.net> <878s2m15q1.fsf@gnus.org> <87im1q6n3e.fsf@tethera.net> X-Now-Playing: Caroline Shaw & =?utf-8?Q?S=C5=8D?= Percussion's _Let The Soil Play Its Simple Part_: "Long Ago We Counted" Date: Mon, 05 Jul 2021 15:24:27 +0200 In-Reply-To: <87im1q6n3e.fsf@tethera.net> (David Bremner's message of "Sun, 04 Jul 2021 13:49:25 -0300") Message-ID: <878s2kzyes.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: David Bremner writes: > I should have been more precise. I'm calling it indirectly via > mm-display-part, which is useful in the case where someone attaches a > message/rfc822 part to their message. In principle notmuch ca [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Message-ID-Hash: QX4UOCJC3BZ42I7KOFQZTDVTXZ5765LH X-Message-ID-Hash: QX4UOCJC3BZ42I7KOFQZTDVTXZ5765LH X-MailFrom: larsi@gnus.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 CC: 49380@debbugs.gnu.org, notmuch@notmuchmail.org 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625491482; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc: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-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2C9h2qXU19KZK624KjW+5/coU+mrAzp6eb5qBjvs40Y=; b=iYPrjDbq0fcQuq/topcwm1N91uD1HpVpu4NME7o/pmm7iudw9Pi/cEPKuuSA22/gPsxxHT HCszTsRoMIciMfCTiPlut1+u50h/hTh++G8XDtQ2xMFTwg38qAseQj1qMGtryJ4hSARg75 Lqp53s5NpoaIl8ha2XTsMTWQaSRGUlu7Z4J1/yq8NcQJMbt+YgfuGprEG0Vg5eOVsC5kia bu7prBheltIDil2pGiAlWOjtT8vFXcQ7TMkIK2RfE+UjdKMSMMzTmD2KihvHntqSW16Neq 2xhQWxrQ3zfxR7w7lU7jVAjADJyZpDiLY6tQcPNFH4G2ohmCcyJvEYUCvmYXOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625491482; a=rsa-sha256; cv=none; b=MtsnmpI30jhySk9Hz+I+FHlI7r9WVnQtj8ajylQd/KCtLfSZmg/ogwMjrjwZXdWpiagr9o SS9N163v60p79SeV//fQHkaFpk4cN/aJzQMuJvISTmfZuSl0ZnI9v/JVdkixUi8zyy+aCM vZm1iVRWt68qlNHvSpnfFFUj2F7+oPbJussabFJfp3nzCmxQ0fuMymM8quJRWZ4Vvy/gQ5 dFhbvt+W6MRLkkAjxj8khYmcKOy+6Np5vhL6BXIL+dv0DTjWyZLME8Nxjf1aDr0HKv19Kb alXcLxY+er2GTCHkw05coSCb3vplfbFTRm3aSC1hzavS1UtbRqdB2MXtZcOO/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnus.org header.s=20200322 header.b=NG0i7Ghg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gnus.org (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnus.org header.s=20200322 header.b=NG0i7Ghg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gnus.org (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 995DAEB81 X-Spam-Score: 0.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: b3QVxjvELYA/ David Bremner writes: > I should have been more precise. I'm calling it indirectly via > mm-display-part, which is useful in the case where someone attaches a > message/rfc822 part to their message. In principle notmuch can (and in > the general case does) render the part directly, but in certain odd > fall-back cases it is handy to give a visual representation of the part > in the buffer without parsing etc.. ourselves. So the user does have a > mail reader, namely notmuch. In fact I can almost make it work by > forcing the buffer back into notmuch-show-mode after calling > mm-display-part, but that has some side-effects I'd prefer to avoid. Yes, that was what I was thinking about -- the rendered embedded message can't be easily interacted with without the mail reader being able to hook into the rendering. I mean, it's a kinda semi-recursive thing: You want to be able to use (some of) the mail reader's commands to respond to the embedded message. Which is why `mm-inline-message' calls the Gnus functions here. But perhaps the function should be rewritten to call a (say) `mm-inline-message-setup-function', bound by the caller? Then both Gnus and notmuch could use the function. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no