From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 9635F6DE00D3 for ; Mon, 24 Jul 2017 05:05:49 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.492 X-Spam-Level: X-Spam-Status: No, score=0.492 tagged_above=-999 required=5 tests=[AWL=-0.160, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ECi8OEXGTKpV for ; Mon, 24 Jul 2017 05:05:48 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 231516DE00AC for ; Mon, 24 Jul 2017 05:05:47 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 5EBD1100104; Mon, 24 Jul 2017 15:05:34 +0300 (EEST) From: Tomi Ollila To: William Casarin , notmuch@notmuchmail.org Subject: Re: Custom notmuch-show for html? In-Reply-To: <87o9sbw3hf.fsf@jb55.com> References: <87o9sbw3hf.fsf@jb55.com> User-Agent: Notmuch/0.24+52~g1f96813 (https://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jul 2017 12:05:49 -0000 On Sun, Jul 23 2017, William Casarin wrote: > Hey there, > > I would like to never use emacs' slow html renderer when viewing > html-only email. What I want to do is pipe the html through: > > pandoc -f html -t plain > > and then show the output of that. Right now I can do this with `. |` but > I can only do this after I open the email, which is not ideal. > > What would be the best way to accomplish this? Writing one's own renderer function and pointing mm-text-html-renderer to that (or something...) --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- mm-text-html-renderer is a variable defined in =E2=80=98mm-decode.el=E2=80= =99. Its value is =E2=80=98shr=E2=80=99 Documentation: Render of HTML contents. It is one of defined renderer types, or a rendering function. --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- If you try to work something on this (or anything), please report your progress :D Tomi > > Thanks!