From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wXZ9ECadu1+wPQAA0tVLHw (envelope-from ) for ; Mon, 23 Nov 2020 11:29:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QIPRCyadu18oUAAAB5/wlQ (envelope-from ) for ; Mon, 23 Nov 2020 11:29: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) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DCA389404FB for ; Mon, 23 Nov 2020 11:29:40 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B08D428C64; Mon, 23 Nov 2020 06:29:33 -0500 (EST) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 2DAD528C1D for ; Mon, 23 Nov 2020 06:29:31 -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 E87211B00056; Mon, 23 Nov 2020 13:29:26 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1606130967; 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=ISx+eZodJa4m+bERhRmSMEB625J5FM2oU9S5Sn9NkrY=; b=KPfo//uUCCvORIEywQvDR4aN2SbMlFh9Z2JjFCcX4EmJbpyrMzrGjNRvPDADlay7UjzQRj WKtp0LYMaWa9xqsZ8Mk0YuXHidVQVLMG9JCh7vAoIObw3GP1ogTqH5E77JB5MJ1vCLJuGO ejrzNP5ytAtaFQeRqybbgQxVSRme29GLDx4XGEA4TK5w/TXlVfyn4PNKz8FSsWmET7sQ6M lzYou7UzMj7mLtnI/VJq+Q3Kfxah8JnkFRkAHpSlTt3HMkfpLAKzCKjG7dl0HGDVQ/Fve1 +0LGudMyAizUR10BYYUAmuDC4VmC6Fx6dA3pxuOkdePTCSc1DC4cgDqJ0wzE0w== From: Tomi Ollila To: Wenlong Dai , notmuch@notmuchmail.org Subject: Re: question: how to change file extension generated by (notmuch-show-view-part) In-Reply-To: References: User-Agent: Notmuch/0.31+4~gea158b8 (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=lahtoruutu; t=1606130967; 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=ISx+eZodJa4m+bERhRmSMEB625J5FM2oU9S5Sn9NkrY=; b=Ephrckig4upg/TEtpHX5T/EAqhneNl7okdHZRPVJLrbcMl3ke8h0OmH5u34JBBwCmkN4KG 5H46fDKUQV2xZWJQ0DCPTKdZiGPKO6g+7gq2o/xIYKh66qlDZybukE3PFRvrEafKZA+3kg zybeUyOY/D0zgXK17PVJofBHXV0/mPdqp9pT8jQcfB4QzKJdA1V3jtcxS0DWpNno8E0PGM RLxsQNxAave1s2suHz4BTkVw6NSytIJV3DqWUoJZMwDGbQruleIemsLyjQdtdGZG6PFpaj avPGhFOw5ysd632htI56aoGool97djwAZ3iedUzbwOverpgwdE0/MOG61+iahQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1606130967; a=rsa-sha256; cv=none; b=BShOjfjzmi/hRY83zfcztblR9ajsXFrJGjwOpOiJn84TUixU7m+figUNJ7PZiXdX+v0OwL aPr63JX5ytMV6vd2N21w3yKSaqIdTh02ACDVCcrztSOBpt4svqVYvqqisbp48zJViuLGGP OM512LGHt1J0/hhW2z8KjSB4US22eTwXMjPTZxTph25YmKys8yaB+O+hfQ82F0ZvO7lVez eDkoXG4dVNAR5VjYM2R6NXCz6XfdX+wbFbFefRCHnZ1pq8GSndl6t1B+x3T6+hWKH3Mw30 J1x1fnthnW5rhdqvNJsRgdKJsOYqHctWF2DJlSRnmWnIwD6D251kFhTlYeHUjw== Message-ID-Hash: Q37CQ3WXZBXGN34AXTNP46MKGW25O7TQ X-Message-ID-Hash: Q37CQ3WXZBXGN34AXTNP46MKGW25O7TQ 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-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=lahtoruutu header.b=KPfo//uU; 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 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 1.99 X-TUID: VO0nNbPt9EC4 On Mon, Nov 23 2020, Wenlong Dai wrote: > I've been trying to use links2 to view html part of messages. > The problem I'm encountering is that, the part would be saved as > /tmp/xxx/xxx.shtml and > passed on to links2, and it seems links2 doesn't recognise the .shtml > extension. > > netsurf works well with .shtml though. > > But being stubborn as I am, I would like to know if I can make notmuch > output .html file instead? > I did a bit of research on shtml, seems it's completely unnecessary in this > case? why would notmuch choose this extension anyway? I could not find any reference to .shtml in notmuch emacs mua sources ... nor could I find such in the "message" sources (zgrep ... in /usr/share/emacs/{version}/lisp/gnus/*.gz) notmuch emacs mua is using doing many of the things. How did you configure emacs to use links2/netsurf to view html parts ? (/usr/share/emacs/{version}/lisp/gnus/mm-view.elc.gz defines these to be known and how those are executed: --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- (defvar mm-text-html-renderer-alist '((shr . mm-shr) (w3m . mm-inline-text-html-render-with-w3m) (w3m-standalone . mm-inline-text-html-render-with-w3m-standalone) (gnus-w3m . gnus-article-html) (links mm-inline-render-with-file mm-links-remove-leading-blank "links" "-dump" file) (lynx mm-inline-render-with-stdin nil "lynx" "-dump" "-force_html" "-stdin" "-nolist") (html2text mm-inline-render-with-function html2text)) "The attributes of renderer types for text/html.") -->8---->8---->8---->8---->8---->8---->8---->8---->8---->8-- Tomi