Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Displaying Images in HTML Mail
@ 2015-03-02  4:26 Les Harris
  2015-03-03 13:11 ` Sivaram Neelakantan
  2015-03-04 11:42 ` Thien-Thi Nguyen
  0 siblings, 2 replies; 10+ messages in thread
From: Les Harris @ 2015-03-02  4:26 UTC (permalink / raw)
  To: info-gnus-english


Can anyone point me in the right direction for configuring Gnus to
display images in HTML mail?

Running Gnus v5.13 as shipped with Emacs 24.4.  EWW renders the HTML in
the Message buffer fine but loads no images. If I go to a URL outside of
Gnus using EWW it renders images fine.  I have set gnus-inhibit-images
to nil in my Gnus config and yet I still have no images showing in the
Gnus message buffer for an HTML mail.

I have yet to find the relevant configuration for this so I thought I
would ask and see if anyone knew.

Any help appreciated, thank you.

-- 
Do they only stand
By ignorance, is that their happy state,
The proof of their obedience and their faith?



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

* Re: Displaying Images in HTML Mail
  2015-03-02  4:26 Displaying Images in HTML Mail Les Harris
@ 2015-03-03 13:11 ` Sivaram Neelakantan
  2015-03-04  6:35   ` Les Harris
  2015-03-04 11:42 ` Thien-Thi Nguyen
  1 sibling, 1 reply; 10+ messages in thread
From: Sivaram Neelakantan @ 2015-03-03 13:11 UTC (permalink / raw)
  To: Les Harris; +Cc: info-gnus-english

On Sun, Mar 01 2015,Les Harris wrote:

> Can anyone point me in the right direction for configuring Gnus to
> display images in HTML mail?
>
> Running Gnus v5.13 as shipped with Emacs 24.4.  EWW renders the HTML in
> the Message buffer fine but loads no images. If I go to a URL outside of
> Gnus using EWW it renders images fine.  I have set gnus-inhibit-images
> to nil in my Gnus config and yet I still have no images showing in the
> Gnus message buffer for an HTML mail.
>
> I have yet to find the relevant configuration for this so I thought I
> would ask and see if anyone knew.
>
> Any help appreciated, thank you.

On which OS is this?  On what platform is Emacs runnings,as the
Windows port has a few steps that you need to follow.

The following thread might be useful

http://lists.gnu.org/archive/html/help-gnu-emacs/2015-01/msg00328.html

If you're able to see png/jpeg outside of gnus, then the above
instructions are moot.
 
 sivaram
 -- 


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

* Re: Displaying Images in HTML Mail
  2015-03-03 13:11 ` Sivaram Neelakantan
@ 2015-03-04  6:35   ` Les Harris
  0 siblings, 0 replies; 10+ messages in thread
From: Les Harris @ 2015-03-04  6:35 UTC (permalink / raw)
  To: info-gnus-english

Sivaram Neelakantan <nsivaram.net@gmail.com> writes:

> On Sun, Mar 01 2015,Les Harris wrote:
>
>
> On which OS is this?  On what platform is Emacs runnings,as the
> Windows port has a few steps that you need to follow.

Thanks for the response Sivaram.  Sadly, I am running GNU/Linux (and EWW
displays images fine outside of GNUS).

So the search continues. I'll keep looking.  I imagine most people using
GNUS don't care about images in HTML mail but for a few select senders I like
seeing it (namely some hobby related bacn mails).

-- 
Do they only stand
By ignorance, is that their happy state,
The proof of their obedience and their faith



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

* Re: Displaying Images in HTML Mail
  2015-03-02  4:26 Displaying Images in HTML Mail Les Harris
  2015-03-03 13:11 ` Sivaram Neelakantan
@ 2015-03-04 11:42 ` Thien-Thi Nguyen
  2015-03-05  6:46   ` Les Harris
  1 sibling, 1 reply; 10+ messages in thread
From: Thien-Thi Nguyen @ 2015-03-04 11:42 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 759 bytes --]

() Les Harris <les@lesharris.com>
() Sun, 01 Mar 2015 20:26:31 -0800

   Can anyone point me in the right direction for configuring
   Gnus to display images in HTML mail?

   [...]

   I have yet to find the relevant configuration for this so I
   thought I would ask and see if anyone knew.

Before you asked i did not know, but i know how to find out:

 M-x apropos RET gnus-.*image RET

If you do this and post your findings, then together we will
have answered this question in the most fulfilling way, IMHO.

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]



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

* Re: Displaying Images in HTML Mail
  2015-03-04 11:42 ` Thien-Thi Nguyen
@ 2015-03-05  6:46   ` Les Harris
  2015-03-05  7:32     ` Thien-Thi Nguyen
  0 siblings, 1 reply; 10+ messages in thread
From: Les Harris @ 2015-03-05  6:46 UTC (permalink / raw)
  To: info-gnus-english

Thien-Thi Nguyen <ttn@gnu.org> writes:

> If you do this and post your findings, then together we will
> have answered this question in the most fulfilling way, IMHO.

Thank you for your patient reply.  gnus-article-show-images does in fact
display the images in HTML mail once invoked.

Am I correct in thinking I should add this to gnus-article-mode-hook if
I want it invoked automatically?

-- 
Do they only stand
By ignorance, is that their happy state,
The proof of their obedience and their faith?



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

* Re: Displaying Images in HTML Mail
  2015-03-05  6:46   ` Les Harris
@ 2015-03-05  7:32     ` Thien-Thi Nguyen
  2015-03-06  2:31       ` Les Harris
  0 siblings, 1 reply; 10+ messages in thread
From: Thien-Thi Nguyen @ 2015-03-05  7:32 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 680 bytes --]

() Les Harris <les@lesharris.com>
() Wed, 04 Mar 2015 22:46:10 -0800

   Am I correct in thinking I should add this to
   gnus-article-mode-hook if I want it invoked automatically?

That depends on whether or not it works for you, i suppose.  :-D
Take courage, backup $HOME/* somewhere safe, and try it out!  If
the result is as you desire, cool, write it up for the archives;
if not, cool, public discourse goes on -- no worries either way.

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]



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

* Re: Displaying Images in HTML Mail
  2015-03-05  7:32     ` Thien-Thi Nguyen
@ 2015-03-06  2:31       ` Les Harris
  2015-03-06 20:54         ` Tassilo Horn
  0 siblings, 1 reply; 10+ messages in thread
From: Les Harris @ 2015-03-06  2:31 UTC (permalink / raw)
  To: info-gnus-english

Thien-Thi Nguyen <ttn@gnu.org> writes:

> That depends on whether or not it works for you, i suppose.  :-D

Hm. So gnus-article-show-images works when invoked manually. I've tried
adding it to gnus-article-mode-hook by adding/executing the following:

(add-hook
    'gnus-article-mode-hook
    (lambda ()
            (gnus-article-show-images)
            (message "Potentially show images...")))

However when opening an HTML mail with images this seems to have no
affect (manually invoking the command of course works). I can see the
'Potentially show images...' text in the *Messages* buffer so I know the
hook is executing.  Maybe the article mode hook is executing too early?
Or perhaps gnus-article-mode-hook is the incorrect hook to place the funcall.

-- 
Do they only stand
By ignorance, is that their happy state,
The proof of their obedience and their faith?



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

* Re: Displaying Images in HTML Mail
  2015-03-06  2:31       ` Les Harris
@ 2015-03-06 20:54         ` Tassilo Horn
  2015-03-07  1:27           ` Les Harris
  0 siblings, 1 reply; 10+ messages in thread
From: Tassilo Horn @ 2015-03-06 20:54 UTC (permalink / raw)
  To: info-gnus-english

Les Harris <les@lesharris.com> writes:

> Thien-Thi Nguyen <ttn@gnu.org> writes:
>
>> That depends on whether or not it works for you, i suppose.  :-D
>
> Hm. So gnus-article-show-images works when invoked manually. I've
> tried adding it to gnus-article-mode-hook by adding/executing the
> following:
>
> (add-hook
>     'gnus-article-mode-hook
>     (lambda ()
>             (gnus-article-show-images)
>             (message "Potentially show images...")))
>
> However when opening an HTML mail with images this seems to have no
> affect (manually invoking the command of course works). I can see the
> 'Potentially show images...' text in the *Messages* buffer so I know
> the hook is executing.  Maybe the article mode hook is executing too
> early?

Yes, that might be the reason.  Try `gnus-article-prepare-hook' instead.

Bye,
Tassilo



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

* Re: Displaying Images in HTML Mail
  2015-03-06 20:54         ` Tassilo Horn
@ 2015-03-07  1:27           ` Les Harris
  2015-03-07 20:54             ` Jeffrey DeLeo
  0 siblings, 1 reply; 10+ messages in thread
From: Les Harris @ 2015-03-07  1:27 UTC (permalink / raw)
  To: info-gnus-english

Tassilo Horn <tsdh@gnu.org> writes:

> Yes, that might be the reason.  Try `gnus-article-prepare-hook' instead.

Yes, this did the trick.  Thank you both for your help. The final
configuration is as follows:

(add-hook
    'gnus-article-prepare-hook
    (lambda ()
            (gnus-article-show-images)))

I've added some filtering in there so only a certain class of emails
will execute the show images function but that is the core.

-- 
Do they only stand
By ignorance, is that their happy state,
The proof of their obedience and their faith?



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

* Re: Displaying Images in HTML Mail
  2015-03-07  1:27           ` Les Harris
@ 2015-03-07 20:54             ` Jeffrey DeLeo
  0 siblings, 0 replies; 10+ messages in thread
From: Jeffrey DeLeo @ 2015-03-07 20:54 UTC (permalink / raw)
  To: info-gnus-english

You could also look at the following variables:
mm-inline-text-html-with-images, mm-w3m-safe-url-regexp



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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02  4:26 Displaying Images in HTML Mail Les Harris
2015-03-03 13:11 ` Sivaram Neelakantan
2015-03-04  6:35   ` Les Harris
2015-03-04 11:42 ` Thien-Thi Nguyen
2015-03-05  6:46   ` Les Harris
2015-03-05  7:32     ` Thien-Thi Nguyen
2015-03-06  2:31       ` Les Harris
2015-03-06 20:54         ` Tassilo Horn
2015-03-07  1:27           ` Les Harris
2015-03-07 20:54             ` Jeffrey DeLeo

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