From: Felix Natter <fnatter@gmx.net>
To: ding@gnus.org
Subject: View HTML Mail in Browser
Date: Sat, 06 Feb 2021 14:39:20 +0100 [thread overview]
Message-ID: <87wnvlz56f.fsf@gmx.net> (raw)
hello Gnus users,
I would like to view complex HTML mails in Firefox.
I found this (https://www.emacswiki.org/emacs/MimeTypesWithGnus):
(defun my-gnus-summary-view-html-alternative-in-firefox ()
"Display the HTML part of the current multipart/alternative MIME message
in mozilla."
(interactive)
(save-current-buffer
(gnus-summary-show-article)
(set-buffer gnus-article-buffer)
(let ((file (make-temp-file "html-message-" nil ".html"))
;;(handle (nth 3 (assq 1 gnus-article-mime-handle-alist))))
(handle (caddr (assq 1 gnus-article-mime-handle-alist))))
(mm-save-part-to-file handle file)
(browse-url-firefox-new-tab (concat "file://" file)))))
Note that I changed the (nth 3 to (caddr as mentioned on that wiki page.
Sometimes it generates the .html but does not open the browser, but
often it just shows the headers of the selected article, and does
nothing (at least in *Messages*).
I am using Gnus v5.13 with Emacs 26.3.
Is there a modern best practice for reading non-trivial HTML mails? I
know about shr, but it often fails.
Thanks and Best Regards,
Felix
--
Felix Natter
next reply other threads:[~2021-02-06 13:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-06 13:39 Felix Natter [this message]
2021-02-06 14:03 ` Andreas Schwab
2021-02-06 21:33 ` Felix Natter
2021-02-06 21:54 ` Adam Sjøgren
2021-02-07 9:36 ` Felix Natter
2021-02-07 12:50 ` Adam Sjøgren
2021-02-13 11:34 ` Felix Natter
2021-02-13 17:30 ` Adam Sjøgren
2021-02-08 11:05 ` Eric S Fraga
2021-02-08 11:44 ` Emanuel Berg
2021-02-08 11:58 ` Eric S Fraga
2021-02-08 12:12 ` Andreas Schwab
2021-02-08 15:06 ` Emanuel Berg
2021-02-06 23:19 ` Eric Abrahamsen
2021-05-26 14:08 ` Steinar Bang
2021-02-07 10:23 ` Valtteri Vuorikoski
2021-02-09 22:02 ` Adam Sjøgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnvlz56f.fsf@gmx.net \
--to=fnatter@gmx.net \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).