Gnus development mailing list
 help / color / mirror / Atom feed
From: Felix Natter <fnatter@gmx.net>
To: "Adam Sjøgren" <asjo@koldfront.dk>
Cc: ding@gnus.org
Subject: Re: View HTML Mail in Browser
Date: Sun, 07 Feb 2021 10:36:59 +0100	[thread overview]
Message-ID: <87mtwg6wxw.fsf@gmx.net> (raw)
In-Reply-To: <874kio3lrh.fsf@tullinup.koldfront.dk>

Adam Sjøgren <asjo@koldfront.dk> writes:

> Felix writes:
>
>>> 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
>> ‘mm-text-html-renderer’ 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:
>
> ...
>
>> Next I tried:
>
> ...
>
>> Finally I tried to create a new thread to get around the blocking
>> problem:

hello Adam,

> What is problem are you trying to solve?

I would like to open mails using w3m by default,
and if I hit K H I would like to open it in the browser:

(setq mm-text-html-renderer 'w3m
      w3m-coding-system 'utf-8
      w3m-file-coding-system 'utf-8
      w3m-file-name-coding-system 'utf-8
      w3m-input-coding-system 'utf-8
      w3m-output-coding-system 'utf-8
      w3m-terminal-coding-system 'utf-8
      w3m-toggle-inline-images t 
      w3m-default-display-inline-images t)

> If an email doesn't render well enough in Gnus, I press the keys K H and
> this one email is displayed in Firefox instead.
>
> It sounds like you don't want _all_ emails to open in the browser - so
> doesn't pressing K H on just the ones you want to see in the browser
> work?

There must be some configuration that prevents this for me: If I have:

(setq mm-text-html-renderer nil)

Then whenever I open an (html) mail, it is automatically opened in the
browser. I could not find any other relevant setting in ~/.gnus.el and
~/.emacs.el.

Emacs version: GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+
      Version 3.24.5) I built this myself due to an issue with 26.1
      in Debian buster.
Gnus version: Gnus v5.13

Shall I update to Emacs 27.1? Would there be any Gnus compatibility
issues that I need to watch out for?

Thanks and Best Regards,
-- 
Felix Natter



  reply	other threads:[~2021-02-07  9:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-06 13:39 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 [this message]
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=87mtwg6wxw.fsf@gmx.net \
    --to=fnatter@gmx.net \
    --cc=asjo@koldfront.dk \
    --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).