From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +NA3DqLzUGEbMAEAgWs5BA (envelope-from ) for ; Mon, 27 Sep 2021 00:26:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eJLSCaLzUGEqcAAAB5/wlQ (envelope-from ) for ; Sun, 26 Sep 2021 22:26:42 +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 4822236E3F for ; Mon, 27 Sep 2021 00:26:41 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A0C8D2060D; Sun, 26 Sep 2021 18:26:37 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id EC9542058B for ; Sun, 26 Sep 2021 18:26:34 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 72BFA5FD5C; Sun, 26 Sep 2021 18:26:34 -0400 (EDT) Received: (nullmailer pid 1717565 invoked by uid 1000); Sun, 26 Sep 2021 22:26:32 -0000 From: David Bremner To: Dmitry Polyakov , notmuch@notmuchmail.org Subject: Re: How to disable html render at all? In-Reply-To: <87lf66ab2a.fsf@liltechdude.xyz> References: <87lf66ab2a.fsf@liltechdude.xyz> Date: Sun, 26 Sep 2021 19:26:32 -0300 Message-ID: <87h7e70y93.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: XOKHUK2UWG7E5Q2DREVEUNIQ2DULESSN X-Message-ID-Hash: XOKHUK2UWG7E5Q2DREVEUNIQ2DULESSN 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; 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632695202; 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-unsubscribe:list-subscribe:list-post; bh=4VWykOHQtNcUqTlR+8zPHRJ2Hk4Xbgiwx9WUpnjWNi8=; b=lXfwMUtLC3JGnHDt66ieV+5BRTs+JTOAu5TyS1mSNs/Szb0gkHuk5PHdpaLa8m6NAxvE0M dpH0VxMI78UNgbhIN8RvtxSdpK9t+/rQTVqEijQuUOQ1k/x/x2m+zUMzwEJovtFqkQbZGe ApnNK1uWaNAbgv2HLZNeJBN8FwVilwHA9LLemOOeWK+6ktk2N7dNg4fKUIn/skukBZAcCl Ufc12ADRqiBXz+u/gmYIfQdYldAGSgNHkHrkJ34iF1yf+fC9aIcDo6YgNJGLYtyORbnTb/ 0Gxre6qLvns1SNBpTQifAq3am+YFfAt1WwSO6Um221FUoWrnI44Pkwz1ZcjNgA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632695202; a=rsa-sha256; cv=none; b=GheSfD5wM6zqM5e4VeM/zOk+KyUOl/XrMPEpFDQntCs5s0j1WEOqelc/+U52mjA4jW1jig EBKlfqfzu14jISnrE9vNyVJ4w3Bv96x1xFd+jpwPTTuO+4jjqKyiLYwN44IJrvZOejkj8m 3UMNLn452Vj1f6xA1WnI56gpBEx62HmOX8nvsVEdTYesE0t1xfgLcQAZJnf1SYcAVxFJ2a WPmBKVoc6uPq81vsGPINFexUC+oz2XhfDSNwL6OWcZXNdXI092vKuZWVDK0NW52oEMrr0U l1Q23RuNviuAtrM15VJpHfc1PTeHWTUPUb+pdXnejMtOUlA3xrK5/CFjbyXsRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -1.05 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 4822236E3F X-Spam-Score: -1.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: FUUYPV5hdEOH Dmitry Polyakov writes: > Hello everyone. > > When none of multipart but text/html was found, notmuch render html part > of email, but how I can disable this behavior? Perfectly is to toggle > render html by some function. > Apologies for the long wait. If you customize mm-inlined-types, you can replace text/.* with text/plain, then html parts will never be inlined. If you want to view them, you could use ". o" and give the name of an external browser. It's not as convenient as just pressing the [text/html] button to render, but I think that would actually render them, but keep them hidden, even if I could figure out the magic incantation to make it work. d