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 WLxjLYYO9GIOFAAAbAwnHQ (envelope-from ) for ; Wed, 10 Aug 2022 22:01:10 +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 oKtPLYYO9GKBOQAAauVa8A (envelope-from ) for ; Wed, 10 Aug 2022 22:01:10 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 7A71A19B01 for ; Wed, 10 Aug 2022 22:01:10 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9D3045F389; Wed, 10 Aug 2022 20:01:07 +0000 (UTC) Received: from meesny.iki.fi (meesny.iki.fi [IPv6:2001:67c:2b0:1c1::201]) by mail.notmuchmail.org (Postfix) with ESMTPS id F19815E221 for ; Wed, 10 Aug 2022 20:01:03 +0000 (UTC) Received: from c53 (gw1.nor.fi [185.218.193.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: too) by meesny.iki.fi (Postfix) with ESMTPSA id F059C20093; Wed, 10 Aug 2022 23:01:01 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1660161662; 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=drLFOL9MHXox4wyDC1P0QWjaT7RfTIl1L6VQo+DR2nA=; b=qyPrJYjMgvyjQShJ5d7e12elB50oK83v4WyFqOHsekkSX/5BUCV3f5FzlyuDAp2Vv4NLjr Wi0diNOi7lDcRaDi/S8/h0AByRBMqu6X+2ntMlgtLR5FLrE2RsPZXOqUp5Utl1CcgKFelj m/O4DAyPREgP5u2O2r8JaZCeW2Oa1iQ= From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH 2/2] emacs/show: restrict inlined mimetypes on refresh. In-Reply-To: <20220801113918.3438253-2-david@tethera.net> References: <20220801113918.3438253-1-david@tethera.net> <20220801113918.3438253-2-david@tethera.net> User-Agent: Notmuch/0.36+55~gfb9633d (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1660161662; 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=drLFOL9MHXox4wyDC1P0QWjaT7RfTIl1L6VQo+DR2nA=; b=NX7veo9XVFBhfL38F2Ob2bHXwBC392a6Lm8Yc2kTgJcJVeAElTIX9bn5l7rBsXTImBfLW5 6XA9/qDdxubspdeD0Fs6Q28MkWGgdptxMy7y5Wp9GOd02XPzMNM2LG2WytJtdOxeksw7h8 LiIJj36ABfEi8YDgfzd9HLUTDpHzZyI= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1660161662; a=rsa-sha256; cv=none; b=qv9vUn7M20c8zUCKGVps0PkYQX0ttg6c1puD/AKHq+esS346+J5YSCKGsBaSEmJOSdgCKo gmcWNAtl1wOofkVwbI8Jsi9ssJDek47XQs9lAYcK9XKWiyaGU1IQbkE7iG37TXdp1ays/B q60mUmFB1dSsPA6yfNz0DlFUXQAW+v8= Message-ID-Hash: MFQHXBT7ZPWT3VBTV4R5G4K7LYF75C63 X-Message-ID-Hash: MFQHXBT7ZPWT3VBTV4R5G4K7LYF75C63 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; 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660161670; 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:dkim-signature; bh=tjYxk88ZYljpQtJzriv5/zeM6jExCv2Y5eNRq1zCvAU=; b=XCT/nQf/6tATcMq9AoJnGrXdnja2BPy0hvXwbbGMUpFzdVVflg3FgYG34M/PPWzt0S2xii hoMBFfU4IPfsoOKisfNCjiivhMCNlttFSOFCnpUhODUKRNawxnGLfCVy9T/49NJYmCMgr2 M2r0vpMZSmObzeX3kXbMF9zx7N0jNoypoyvBajB/rNaUgCCb9Tv9V417IPJ43luFspytze X7XL4bgtkR74ryiDXQRt67EFln41vUDYN9RwmsPiRzWUmQsuyS4K5cgmNgmkM6dTHwhIsG TYjvv7vvUrXqrdf5e2QqP3E1+RdEXqDvb9CU+oUf3XjHHY62z5klaHP+Req3cA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1660161670; a=rsa-sha256; cv=fail; b=W0S3Bd01Ul5qPRSdBVZepGbBHCmFdfIdCjSjE1kZ13UgM25l4BGGdBINugCFFwuZ+H6tbb iQr+UQ9s/p3x64/WOq/SEdEHhT9OQDsA8GnH4+e3GltuZoddyBI0Zq8ieyiMjh3fwutj58 r6TQf2t/voUZ5ZHp9t8NNq8NcgRPxaRWyyCb88nDukATxA3bxrImYPbn4e0vJJ/JAUcp6D GSOKI805XzPJ4GZA75oKPMwgP3ICjw4huZhRVd+Uhf1EFBbiDd3b5oLjQS0um014rmuT2U RIu0D82cfQVWwx2cFX3aQV5FSEK1ww/BYHIOyLE17TSDs1v+vQ5JBxlrapQN/A== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=meesny header.b=qyPrJYjM; 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 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 2.24 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=meesny header.b=qyPrJYjM; 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 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 7A71A19B01 X-Spam-Score: 2.24 X-Migadu-Scanner: scn0.migadu.com X-TUID: QJYhTKtz8Tm9 On Mon, Aug 01 2022, David Bremner wrote: > This fixes the bug reported by Al [1]. Essentially apply the same fix > as [2] in a different place. > > [1]: id:877d41nmr1.fsf@gmail.com > [2]: 90a7c1af368a527700dcde9b0dcbd760afc7bd92 LGTM. Tomi > --- > emacs/notmuch-show.el | 1 + > test/T450-emacs-show.sh | 1 - > 2 files changed, 1 insertion(+), 1 deletion(-) > > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el > index 1bc3b319..c072e81d 100644 > --- a/emacs/notmuch-show.el > +++ b/emacs/notmuch-show.el > @@ -1528,6 +1528,7 @@ non-nil) then the state of the buffer (open/closed messages) is > reset based on the original query." > (interactive "P") > (let ((inhibit-read-only t) > + (mm-inline-override-types (notmuch--inline-override-types)) > (state (unless reset-state > (notmuch-show-capture-state)))) > ;; `erase-buffer' does not seem to remove overlays, which can lead > diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh > index b77f8c0e..e161ee4f 100755 > --- a/test/T450-emacs-show.sh > +++ b/test/T450-emacs-show.sh > @@ -339,7 +339,6 @@ EOF > test_expect_equal_file EXPECTED OUTPUT > > test_begin_subtest "tar not inlined by default on refresh" > -test_subtest_known_broken > test_emacs '(notmuch-show "id:874llc2bkp.fsf@curie.anarc.at") > (notmuch-show-refresh-view) > (test-visible-output "OUTPUT")' > -- > 2.35.2 > > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org