From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14510 invoked from network); 6 Feb 2021 21:33:54 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 6 Feb 2021 21:33:54 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1l8VDA-00Bm78-0j for ml@inbox.vuxu.org; Sat, 06 Feb 2021 15:33:48 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1l8VD9-00B1Dg-92 for ml@inbox.vuxu.org; Sat, 06 Feb 2021 15:33:47 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1l8VD5-00B1DU-V8 for ding@lists.math.uh.edu; Sat, 06 Feb 2021 15:33:43 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1l8VD1-00Bm6i-Kw for ding@lists.math.uh.edu; Sat, 06 Feb 2021 15:33:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References :Message-ID:Date:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bW3KqTv9JbZj6Ff17qmO5rUaMIJusDoevlX2VNkBOgM=; b=k0jpHjimzNU8DH7CWUCZkGArkH BpJlEAAvVrC0sYwjjQDZFmC41N/NPHyZFLpe0+9hrh235e8EO/V1UCGt4lFf9/PkWBvLyWNlxhB5T pGy4SlHeedR6MSjTP3ubx+MY7wFHIrbR2tx56Iv9rtJOV5cHtJO1C+JTYNXE17cI/WpY=; Received: from mout.gmx.net ([212.227.17.22]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8VCm-0001lz-RJ for ding@gnus.org; Sat, 06 Feb 2021 22:33:34 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612647202; bh=i7PqT2QP5M1hvkIRPKqL2LWMHoocC1245DMzVIqldUg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:Date:References; b=NfDfkDHugKw7oHDadgB3SLCvvP9qGKxQ1ya1vLjalC1aOAWItBVjABpmPno/DZ3QD Fd3xl1qlzkvLvOP3wad9YXOOf/lkB9Vtqc3TBfbigluQJFjE3brZ2RArGl8oXui7ct Y2VK4rhPBmI5MO7rvQN22Ks1ETA4yOdgA0Qy803E= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from bitburger ([93.230.138.11]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M1ps8-1l6IHa0VhY-002Euy; Sat, 06 Feb 2021 22:33:22 +0100 From: Felix Natter To: Andreas Schwab Cc: ding@gnus.org Subject: Re: View HTML Mail in Browser In-Reply-To: <874kipqomu.fsf@igel.home> (Andreas Schwab's message of "Sat, 06 Feb 2021 15:03:53 +0100") Date: Sat, 06 Feb 2021 22:33:18 +0100 Message-ID: <87r1lsq3tt.fsf@gmx.net> References: <87wnvlz56f.fsf@gmx.net> <874kipqomu.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Hz2SHZQgzUepBSaGfRxY2d35yxG75Ow+6IVEfyyslh2vafv0u4L K7Ro1tX2ltqf1ySvG6PC5WnmBXYhKfnRI5zWfsaCZIvv1KXXyWQeTi6rSOT54VY0EEMJnCO vGqGdyBAwnYd6/5Wtxl7zzXCLiW/qIHpUjkw8T19FX5dsDMtXjENLPgkFQbp39lKh3ZQ+ur 4UxWsNUxWhg6DLkSQchjA== X-UI-Out-Filterresults: notjunk:1;V03:K0:+lnCmy5PQcQ=:iUwIro5c+bEOeStb95u7hP e4U7ZeoxupNTngUzSAl4ZtX4ZYX6/lDqzkPxpnGlpADhI+3LGq9ubWqZVsPPM/wT7/X3Ppz9H JOBHi3RElOflt7BW6SUY8AOWqmqhJluVl+5t1IJ23wi1MIsoBaSCtOuUaws4xBpIuIrYxX4Fh vyNhkFkWtxTBp1iChJYOvh0YHsACZH2sb7Nv9+W8DJ+WIBbzEQKnZN/kbi2WPRR1SAbiLEo8j 9Y/bvGq2I/JRRo6KeKxtPnOyGFWUEJOhyvqxebyHuEf8CSJ8bQQSqKcjnlcqHLryFA2WZUlsr SBvnIeal+hC8DOLY3gtNMlUudbX2KIBtD49yfcwmjctYjLrTk0wGZQ5Q3W8hTQ4gy4WC4pLHa wk+rWtonjhaTuZJXRK1ye5i6pVEo4AnHe+iSMHXHAhybMGuwkZqV/mJbNRnZgxwXPEyr2B+rj Tma+TJxA53rDRPZ7i1BRYpr2zvZ1TClDxeosZnNt6TlbwJMfgf1CMrjmIr26E1M/AU6GAXgB7 gjhCk5j0hHYQJR6kNkaR+KY41AQ0FiLdJQuiGLznvKcQPqJhxCuCFvZrTIALQYfc1Yhp60U3H LfTPv1y+Jispym96goqEZutzjnmvnhqvclyCyEi1Nn4oA8d/gkLJaBbZexxdYfWr2RRJnBLto /e7dxE4Gu3Xm1Zxpx1+ynZ+L5nMGhvEgasRkUb46xWwzFRXsPAP3nXyljd3BKLPoR1B4/m2lA +YNvsmdb0SC2vkolTJ/qmRtzymZCS9DkoNJ3582vPi1l1gB7oJmNqdmhMcopCOLpILnYhLuNQ hALYBtHQOoAR8OyXTWlq75ergL7CMnNv1sjoaWatIfDgYY3C050b8k8YP5mYL6eQdMuRIA3V5 BPq2O57JMNRsH4pewgTA== List-ID: Precedence: bulk hi Andreas, thanks for the reply. Andreas Schwab writes: > On Feb 06 2021, Felix Natter wrote: > >> Is there a modern best practice for reading non-trivial HTML mails? I >> know about shr, but it often fails. > > How about K H (gnus-article-browse-html-article)? -------- View "text/html" parts of the current article with a WWW browser. Inline images embedded in a message using the cid scheme, as they are generally considered to be safe, will be processed properly. The message header is added to the beginning of every html part unless the prefix argument ARG is given. If you always want to display HTML parts in the browser, set =E2=80=98mm-text-html-renderer=E2=80=99 to nil. -------- Setting (setq mm-text-html-renderer nil) works, but it will open *all* mails in the browser. So I tried with a local variable: -------- (defun my-gnus-article-browse-html-article () "" (interactive) (let ((mm-text-html-renderer nil)) (gnus-article-browse-html-article))) -------- -> this blocks ("waiting for external displayer to die...") Next I tried: -------- (add-to-list 'mm-text-html-renderer-alist '(ff . browse-url-firefox-new-tab)) (defun my-gnus-article-browse-html-article () "" (interactive) (let ((mm-text-html-renderer 'ff)) (gnus-article-browse-html-article))) -------- -> this gives an error like shell-command-to-string: Wrong type argument: characterp, # Finally I tried to create a new thread to get around the blocking problem: -------- (defun my-gnus-article-browse-html-article () "" (interactive) (make-thread (lambda () (let ((mm-text-html-renderer nil)) (gnus-article-browse-html-article))))) -------- This works better than the first solution, but it doesn't work perfectly (blocks for some seconds, saves the mail multiple times and opens it multiple times in the browser). Any idea? Thanks and Best Regards, --=20 Felix Natter