Gnus development mailing list
 help / color / mirror / Atom feed
* View HTML Mail in Browser
@ 2021-02-06 13:39 Felix Natter
  2021-02-06 14:03 ` Andreas Schwab
  2021-02-07 10:23 ` Valtteri Vuorikoski
  0 siblings, 2 replies; 17+ messages in thread
From: Felix Natter @ 2021-02-06 13:39 UTC (permalink / raw)
  To: ding

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



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-05-26 21:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-06 13:39 View HTML Mail in Browser Felix Natter
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

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).