Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* better solution for html mails?
@ 2015-03-27 18:09 Felix Natter
  2015-03-27 18:15 ` Adam Sjøgren
       [not found] ` <mailman.2891.1427480165.31049.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Felix Natter @ 2015-03-27 18:09 UTC (permalink / raw)
  To: info-gnus-english

hello,

I am currently using w3m-el to display HTML mails:

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

But is there a better solution in the mean time, maybe even using eww?

I am using mgnus-0.6-201304121517.

I couldn't find anything in the net.

Thanks and Best Regards,
-- 
Felix Natter



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

* Re: better solution for html mails?
  2015-03-27 18:09 better solution for html mails? Felix Natter
@ 2015-03-27 18:15 ` Adam Sjøgren
  2015-03-28  8:50   ` Felix Natter
       [not found]   ` <mailman.2926.1427532660.31049.info-gnus-english@gnu.org>
       [not found] ` <mailman.2891.1427480165.31049.info-gnus-english@gnu.org>
  1 sibling, 2 replies; 14+ messages in thread
From: Adam Sjøgren @ 2015-03-27 18:15 UTC (permalink / raw)
  To: info-gnus-english

Felix writes:

> But is there a better solution in the mean time, maybe even using eww?

Lars wrote shr (which eww uses) for showing HTML emails. Maybe try that,
and see if it suits you better?

It is the default:

,----[ C-h v mm-text-html-renderer RET ]
| mm-text-html-renderer is a variable defined in `mm-decode.el'.
| Its value is shr
| 
| Documentation:
| Render of HTML contents.
| It is one of defined renderer types, or a rendering function.
| The defined renderer types are:
| `shr': use the built-in Gnus HTML renderer;
| `gnus-w3m': use Gnus renderer based on w3m;
| `w3m': use emacs-w3m;
| `w3m-standalone': use plain w3m;
| `links': use links;
| `lynx': use lynx;
| `html2text': use html2text;
| nil    : use external viewer (default web browser).
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 24.1 of Emacs.
`----


  Best regards,

    Adam

-- 
 "The choice is small If there's choice at all                Adam Sjøgren
  But I'm holding on as if I'm going to fall"            asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
       [not found] ` <mailman.2891.1427480165.31049.info-gnus-english@gnu.org>
@ 2015-03-27 21:09   ` Emanuel Berg
  2015-03-27 21:14     ` Adam Sjøgren
       [not found]     ` <mailman.2910.1427490888.31049.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Emanuel Berg @ 2015-03-27 21:09 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

> Lars wrote shr (which eww uses) for showing HTML
> emails. Maybe try that, and see if it suits
> you better?

Correct me if I'm wrong, but didn't he write eww as
well? So shouldn't you get the same "both" ways?

In my experience, which is limited to a short test of
eww, I admit, Emacs-w3m is the best web browser for
Emacs, and the best text-based browser all categories
(tho I assume it does images for a GUI Emacs).
Because text-based programs are always better than GUI
ditto, Emacs-w3m is the best browser in the world!

                . ~ * jubilation * ~ .

So why not try that?

(I CC this to the w3m mailing list which is

    emacs DASH w3m AT&T namazu DOS org

- people always deserve appreciation that is true)

Now...

HTML mails aren't exactly what anyone is encouraged to
use. But thanks to Gnus, when it happens, the
repercussions can be limited. Try this: you should now
never see it, and if you do, it will look the best :)

    (setq mm-text-html-renderer 'w3m)
    (setq mm-discouraged-alternatives '("text/html"
                                        "text/richtext"))

-- 
underground experts united
http://user.it.uu.se/~embe8573
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
  2015-03-27 21:09   ` Emanuel Berg
@ 2015-03-27 21:14     ` Adam Sjøgren
       [not found]     ` <mailman.2910.1427490888.31049.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Adam Sjøgren @ 2015-03-27 21:14 UTC (permalink / raw)
  To: info-gnus-english

Emanuel writes:

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

>> Lars wrote shr (which eww uses) for showing HTML emails. Maybe try
>> that, and see if it suits you better?

> Correct me if I'm wrong, but didn't he write eww as well?

Uhm, yes, of course?

> So shouldn't you get the same "both" ways?

Ehh, what?!?

I was trying to explain that a) eww was a biproduct of writing shr,
which b) was made to render HTML, and c) is the default method to show
HTML in Gnus these days.

> In my experience, which is limited to a short test of eww, I admit,
> Emacs-w3m is the best web browser for Emacs, [....]

> So why not try that?

Because w3m is what the original poster _already was using_. Did you
read the articles in this thread at all?!


  Best regards,

    Adam

-- 
 "You do not know what geometry means, do you?"               Adam Sjøgren
 "Of course I do, it is a type of camel."                asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
       [not found]     ` <mailman.2910.1427490888.31049.info-gnus-english@gnu.org>
@ 2015-03-27 21:29       ` Emanuel Berg
  2015-03-27 21:34         ` Adam Sjøgren
       [not found]         ` <mailman.2912.1427492115.31049.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Emanuel Berg @ 2015-03-27 21:29 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

> Because w3m is what the original poster _already was
> using_. Did you read the articles in this thread at
> all?!

What articles are you talking about?

-- 
underground experts united
http://user.it.uu.se/~embe8573
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
  2015-03-27 21:29       ` Emanuel Berg
@ 2015-03-27 21:34         ` Adam Sjøgren
       [not found]         ` <mailman.2912.1427492115.31049.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Adam Sjøgren @ 2015-03-27 21:34 UTC (permalink / raw)
  To: info-gnus-english

Emanuel writes:

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

>> Because w3m is what the original poster _already was using_. Did you
>> read the articles in this thread at all?!

> What articles are you talking about?

The one I wrote, and you responded to, and the one Felix Natter wrote,
which my article was a follow up to, wherein he wrote:

| I am currently using w3m-el to display HTML mails:

| (setq mm-text-html-renderer 'w3m

[...]

| But is there a better solution in the mean time, maybe even using eww?

To which you responded, and I am paraphrasing here: why don't you try
w3m.


  Best regards,

    Adam

-- 
 "Our hero regains consciousness at the feet of a             Adam Sjøgren
  sarcastic alien..."                                    asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
       [not found]         ` <mailman.2912.1427492115.31049.info-gnus-english@gnu.org>
@ 2015-03-27 21:50           ` Emanuel Berg
  2015-03-27 21:53             ` Adam Sjøgren
       [not found]             ` <mailman.2914.1427493255.31049.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Emanuel Berg @ 2015-03-27 21:50 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

>> What articles are you talking about?
>
> The one I wrote, and you responded to, and the one
> Felix Natter wrote, which my article was a follow up
> to, wherein he wrote:
>
> | I am currently using w3m-el to display HTML mails:
>
> | (setq mm-text-html-renderer 'w3m
>
> [...]
>
> | But is there a better solution in the mean time,
> | maybe even using eww?
>
> To which you responded, and I am paraphrasing here:
> why don't you try w3m.

Aha, right! I guess we'll have to wait and see if the
OP sends an answer to that question.

-- 
underground experts united
http://user.it.uu.se/~embe8573
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
  2015-03-27 21:50           ` Emanuel Berg
@ 2015-03-27 21:53             ` Adam Sjøgren
       [not found]             ` <mailman.2914.1427493255.31049.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Adam Sjøgren @ 2015-03-27 21:53 UTC (permalink / raw)
  To: info-gnus-english

Emanuel writes:

>> | (setq mm-text-html-renderer 'w3m

>> To which you responded, and I am paraphrasing here:
>> why don't you try w3m.

> Aha, right! I guess we'll have to wait and see if the
> OP sends an answer to that question.

*plonk*


-- 
 "Now there sits a man with an open mind. You can feel        Adam Sjøgren
  the draft from here."                                  asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
       [not found]             ` <mailman.2914.1427493255.31049.info-gnus-english@gnu.org>
@ 2015-03-27 22:18               ` Emanuel Berg
  0 siblings, 0 replies; 14+ messages in thread
From: Emanuel Berg @ 2015-03-27 22:18 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

> *plonk*

Although my own interface to populate the KILL file
doesn't come with this sound effect anymore, so as no
one will ever know whose messages I read or do not
read, and so it won't deteriorate to a "discussion"
ping-pong table of plonks back and forth, let me
publicly assure everyone that henceforth I will
continue to read no less than 100% of
Mr. Sjøgren's articles.

-- 
underground experts united
http://user.it.uu.se/~embe8573
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
  2015-03-27 18:15 ` Adam Sjøgren
@ 2015-03-28  8:50   ` Felix Natter
  2015-03-28 14:15     ` Adam Sjøgren
       [not found]   ` <mailman.2926.1427532660.31049.info-gnus-english@gnu.org>
  1 sibling, 1 reply; 14+ messages in thread
From: Felix Natter @ 2015-03-28  8:50 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

> Felix writes:

hello Adam,

>> But is there a better solution in the mean time, maybe even using eww?
>
> Lars wrote shr (which eww uses) for showing HTML emails. Maybe try that,
> and see if it suits you better?

Thanks for the information!

This seems to work a bit better than w3m-el (fonts look nicer). However,
it still does not seem not seem to display images at all :-/ --> I guess
I'll just have to live with this, or can I configure shr to diplay all
images at the bottom of the mail (which is not that hard)?

I looked at shr-put-image-function but don't know how to use it and
whether it solves my problem.

Thanks and Best Regards,
-- 
Felix Natter


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
  2015-03-28  8:50   ` Felix Natter
@ 2015-03-28 14:15     ` Adam Sjøgren
  2015-03-28 15:07       ` Felix Natter
  0 siblings, 1 reply; 14+ messages in thread
From: Adam Sjøgren @ 2015-03-28 14:15 UTC (permalink / raw)
  To: info-gnus-english

Felix writes:

> This seems to work a bit better than w3m-el (fonts look nicer). However,
> it still does not seem not seem to display images at all :-/ --> I guess
> I'll just have to live with this, or can I configure shr to diplay all
> images at the bottom of the mail (which is not that hard)?

This is to prevent tracking, I believe (the "populular" practice of
checking whether an email has been read, by keeping tabs on which images
has been requested).

You can either ask Gnus to display images when you want them shown in a
single article, by invoking W D W (gnus-article-show-images), or you can
set mm-inline-text-html-with-images for a more permanent change in
behaviour:

,----[ C-h v mm-inline-text-html-with-images RET ]
| mm-inline-text-html-with-images is a variable defined in `mm-decode.el'.
| Its value is nil
| 
| Documentation:
| If non-nil, Gnus will allow retrieving images in HTML that has <img> tags.
| See also the documentation for the `mm-w3m-safe-url-regexp'
| variable.
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 22.1 of Emacs.
`----

I wonder why W D W is not in the menu, as far as I can see.


  Best regards,

    Adam

-- 
 "Scare yourself all away from the light                      Adam Sjøgren
  When you look down - you never left the ground"        asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
  2015-03-28 14:15     ` Adam Sjøgren
@ 2015-03-28 15:07       ` Felix Natter
  2015-03-28 15:44         ` Adam Sjøgren
  0 siblings, 1 reply; 14+ messages in thread
From: Felix Natter @ 2015-03-28 15:07 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

> Felix writes:

hello Adam,

>> This seems to work a bit better than w3m-el (fonts look nicer). However,
>> it still does not seem not seem to display images at all :-/ --> I guess
>> I'll just have to live with this, or can I configure shr to diplay all
>> images at the bottom of the mail (which is not that hard)?
>
> This is to prevent tracking, I believe (the "populular" practice of
> checking whether an email has been read, by keeping tabs on which images
> has been requested).

Of course, I should've thought about that.

> You can either ask Gnus to display images when you want them shown in a
> single article, by invoking W D W (gnus-article-show-images), or you
> can

Works great, thanks!

> set mm-inline-text-html-with-images for a more permanent change in
> behaviour:
>
> ,----[ C-h v mm-inline-text-html-with-images RET ]
> | mm-inline-text-html-with-images is a variable defined in `mm-decode.el'.
> | Its value is nil
> | 
> | Documentation:
> | If non-nil, Gnus will allow retrieving images in HTML that has <img> tags.
> | See also the documentation for the `mm-w3m-safe-url-regexp'
> | variable.
> | 
> | You can customize this variable.
> | 
> | This variable was introduced, or its default value was changed, in
> | version 22.1 of Emacs.
> `----
>
> I wonder why W D W is not in the menu, as far as I can see.

This would be useful indeed.

Cheers and Best Regards,
-- 
Felix Natter


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
  2015-03-28 15:07       ` Felix Natter
@ 2015-03-28 15:44         ` Adam Sjøgren
  0 siblings, 0 replies; 14+ messages in thread
From: Adam Sjøgren @ 2015-03-28 15:44 UTC (permalink / raw)
  To: info-gnus-english

Felix writes:

>> set mm-inline-text-html-with-images for a more permanent change in
>> behaviour:

Another variable that might be of interest is gnus-blocked-images:

,----[ C-h v gnus-blocked-images RET ]
| gnus-blocked-images is a variable defined in `gnus-art.el'.
| Its value is gnus-block-private-groups
| 
| Documentation:
| Images that have URLs matching this regexp will be blocked.
| This can also be a function to be evaluated.  If so, it will be
| called with the group name as the parameter, and should return a
| regexp.
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 24.1 of Emacs.
| 
| [back]
`----

>> I wonder why W D W is not in the menu, as far as I can see.

> This would be useful indeed.

Added.


  Best regards,

    Adam

-- 
 "Happiness isn't good enough for me! I demand                Adam Sjøgren
  euphoria!"                                             asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: better solution for html mails?
       [not found]   ` <mailman.2926.1427532660.31049.info-gnus-english@gnu.org>
@ 2015-03-28 17:20     ` Emanuel Berg
  0 siblings, 0 replies; 14+ messages in thread
From: Emanuel Berg @ 2015-03-28 17:20 UTC (permalink / raw)
  To: info-gnus-english

Felix Natter <fnatter@gmx.net> writes:

> This seems to work a bit better than w3m-el (fonts
> look nicer).

If you don't like the w3m default faces, like all
other faces, they are up for configuration:

As `M-x describe-face RET w3m- TAB' reveals:

    w3m-anchor 	w3m-arrived-anchor
    w3m-bold 	w3m-current-anchor
    w3m-form 	w3m-form-button
    w3m-form-button-mouse 	w3m-form-button-pressed
    w3m-form-inactive 	w3m-header-line-location-content
    w3m-header-line-location-title 	w3m-history-current-url
    w3m-image 	w3m-image-anchor
    w3m-insert 	w3m-italic
    w3m-session-select 	w3m-session-selected
    w3m-strike-through 	w3m-tab-background
    w3m-tab-mouse 	w3m-tab-selected
    w3m-tab-selected-background 	w3m-tab-selected-retrieving
    w3m-tab-unselected 	w3m-tab-unselected-retrieving
    w3m-tab-unselected-unseen 	w3m-underline

> However, it still does not seem not seem to display
> images at all :-/ --> I guess I'll just have to live
> with this, or can I configure shr to diplay all
> images at the bottom of the mail (which is not that
> hard)?

Why do you want to use HTML e-mails at all?

-- 
underground experts united
http://user.it.uu.se/~embe8573

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

end of thread, other threads:[~2015-03-28 17:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-27 18:09 better solution for html mails? Felix Natter
2015-03-27 18:15 ` Adam Sjøgren
2015-03-28  8:50   ` Felix Natter
2015-03-28 14:15     ` Adam Sjøgren
2015-03-28 15:07       ` Felix Natter
2015-03-28 15:44         ` Adam Sjøgren
     [not found]   ` <mailman.2926.1427532660.31049.info-gnus-english@gnu.org>
2015-03-28 17:20     ` Emanuel Berg
     [not found] ` <mailman.2891.1427480165.31049.info-gnus-english@gnu.org>
2015-03-27 21:09   ` Emanuel Berg
2015-03-27 21:14     ` Adam Sjøgren
     [not found]     ` <mailman.2910.1427490888.31049.info-gnus-english@gnu.org>
2015-03-27 21:29       ` Emanuel Berg
2015-03-27 21:34         ` Adam Sjøgren
     [not found]         ` <mailman.2912.1427492115.31049.info-gnus-english@gnu.org>
2015-03-27 21:50           ` Emanuel Berg
2015-03-27 21:53             ` Adam Sjøgren
     [not found]             ` <mailman.2914.1427493255.31049.info-gnus-english@gnu.org>
2015-03-27 22:18               ` Emanuel Berg

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