From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 wPRkO3u752KYGwEAbAwnHQ (envelope-from ) for ; Mon, 01 Aug 2022 13:39:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aBOFO3u752J6GgAA9RJhRA (envelope-from ) for ; Mon, 01 Aug 2022 13:39:39 +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 A40691B68D for ; Mon, 1 Aug 2022 13:39:39 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0ED4D5F383; Mon, 1 Aug 2022 11:39:32 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id DE7325F37C for ; Mon, 1 Aug 2022 11:39:29 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id CDA995FBC2; Mon, 1 Aug 2022 07:39:28 -0400 (EDT) Received: (nullmailer pid 3438330 invoked by uid 1000); Mon, 01 Aug 2022 11:39:27 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 2/2] emacs/show: restrict inlined mimetypes on refresh. Date: Mon, 1 Aug 2022 08:39:18 -0300 Message-Id: <20220801113918.3438253-2-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220801113918.3438253-1-david@tethera.net> References: <20220801113918.3438253-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: DANI3S2YG54JNHZEISHFVTROBVQVF2HS X-Message-ID-Hash: DANI3S2YG54JNHZEISHFVTROBVQVF2HS X-MailFrom: bremner@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=1659353979; 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=cpdzD/9c4zRObCBlxgPc5wOJiIktB7jq2gnmnXFMRo4=; b=YqG2U2jtiECI79HvMFcaqtu1z0dZmCliN0rBbglwRjHyGoqo0WEB3x2SAh5Xqmw02NTjsi dHZJnNHSLjy45qJHDpa7d52lrwAD36HrfhU3LyrQCIhf1lD0uDQUhA5xboVa9jaji3NSgQ yihAXPsdIzd2hVH08XKvMUvwa2mkHVxLWAva7HAOMWuug92uPgBzMtrUxG+GM/tl4S+ptn S8W++H36tn0z6cBlrYdy8ma5tTNC1Nd/GjCccl48ZpObHfIuUETEUDWF5RC+BolxWJ9kKy y+QTjMIAEO15JGFOWty3FMndXL6+zPDPLZJSKDO40XWn8JEX1x+JyeNieOZKtw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659353979; a=rsa-sha256; cv=none; b=JjbOi+gjQnRE2EMAyTJAsE2MM5Qk1lHLdE2ExyVqBtOYBhe6+4myMIZDikJdi4UmO97uWY HYvzza9q5VDaCuqp9kfPhOOZmLXGCRtPA8EL0LcjuC7Ln5xbGiuacl9pBFFR2XNGLiL97i 5cBcJYeeC3Fz1sWpJaQGn2pDk5WSKkCJ+yq+tsd5EVXyoAryw4m8RNtWRQs6c6JBPOG22B EohYflPrc6+W2KoUV8LeJsCtNPZcY8e9yGn23ez1E9A7scYbj7YIhVCsW7ZJUzVk5WJTWU Ik8cc7KNmo+cib4LVHSNC4Dw37X6Os5p5/qz+CUkvRv5xG67zpF+pqKvfGp2eA== 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.19 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: A40691B68D X-Spam-Score: -1.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: TJsN5PaUBwAb 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 --- 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