Gnus development mailing list
 help / color / mirror / Atom feed
* mm-inline-text-html-with-images only when From certain people
@ 2011-03-06  5:35 jidanni
  2011-03-08  5:10 ` jidanni
  2011-03-15 17:30 ` mm-inline-text-html-with-images only when From certain people Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: jidanni @ 2011-03-06  5:35 UTC (permalink / raw)
  To: ding

Gentlemen, (info "(emacs-w3m) Gnus") says:
     Also put the following line if you want to show images inline in
     article buffers:
          (setq mm-inline-text-html-with-images t)

But what that Info page should also mention is how to do that only for
messages "^From: certain people".

Yes I bound a key, but it gets rather boring doing it by hand.



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

* Re: mm-inline-text-html-with-images only when From certain people
  2011-03-06  5:35 mm-inline-text-html-with-images only when From certain people jidanni
@ 2011-03-08  5:10 ` jidanni
  2011-03-11 15:10   ` Show Me Images Only when From certain Pe o p le jidanni
  2011-03-15 17:30 ` mm-inline-text-html-with-images only when From certain people Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 6+ messages in thread
From: jidanni @ 2011-03-08  5:10 UTC (permalink / raw)
  To: ding; +Cc: emacs-w3m

>>>>> "j" == jidanni  <jidanni@jidanni.org> writes:
j> Gentlemen, (info "(emacs-w3m) Gnus") says:
j>      Also put the following line if you want to show images inline in
j>      article buffers:
j>           (setq mm-inline-text-html-with-images t)

j> But what that Info page should also mention is how to do that only for
j> messages "^From: certain people".

j> Yes I bound a key, but it gets rather boring doing it by hand.

OK maybe I should put
(if From "nordsburg" then
 (w3m-toggle-inline-images t)}
into gnus-article-mode-hook

after first setting
w3m-toggle-inline-images-permanently
to nil

but I'm not sure.
I'm almost as helpless as Mom,
http://www.facebook.com/profile.php?id=1206196487



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

* Re: Show Me Images Only when From certain Pe o p le
  2011-03-08  5:10 ` jidanni
@ 2011-03-11 15:10   ` jidanni
  2011-03-11 15:19     ` Julien Danjou
  2011-03-11 15:20     ` Robert Pluim
  0 siblings, 2 replies; 6+ messages in thread
From: jidanni @ 2011-03-11 15:10 UTC (permalink / raw)
  To: ding; +Cc: emacs-w3m

;;CAN somebody TELL me how to DO this Right?
(setq
 gnus-article-prepare-hook
 (function
  (lambda ()
    (if(string-match-p "tw-blog-sys@yahoo-inc\\.com" 
		       (prin1-to-string gnus-current-headers))
;;; see how dumb I am ^^^^^^^^^^^^^^^^^ but how else can you do this?

	(progn
	  (set (make-local-variable 'w3m-safe-url-regexp) (set
            (make-local-variable 'mm-w3m-safe-url-regexp)
       "http://tw.blog.yahoo.com/photo/photo.php"))
;;; I only want them set to that value for this message please.
;;; Also it is rather hard to tell just which is the right variable to set
  (w3m-toggle-inline-images t))))))



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

* Re: Show Me Images Only when From certain Pe o p le
  2011-03-11 15:10   ` Show Me Images Only when From certain Pe o p le jidanni
@ 2011-03-11 15:19     ` Julien Danjou
  2011-03-11 15:20     ` Robert Pluim
  1 sibling, 0 replies; 6+ messages in thread
From: Julien Danjou @ 2011-03-11 15:19 UTC (permalink / raw)
  To: jidanni; +Cc: ding, emacs-w3m

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

On Fri, Mar 11 2011, jidanni@jidanni.org wrote:

> ;;CAN somebody TELL me how to DO this Right?
> (setq
>  gnus-article-prepare-hook
>  (function
>   (lambda ()
>     (if(string-match-p "tw-blog-sys@yahoo-inc\\.com" 
> 		       (prin1-to-string gnus-current-headers))
> ;;; see how dumb I am ^^^^^^^^^^^^^^^^^ but how else can you do this?

(gnus-with-article-headers
  (cadr (mail-extract-address-components
          (mail-fetch-field "From"))))

Something like that.

-- 
Julien Danjou
❱ http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

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

* Re: Show Me Images Only when From certain Pe o p le
  2011-03-11 15:10   ` Show Me Images Only when From certain Pe o p le jidanni
  2011-03-11 15:19     ` Julien Danjou
@ 2011-03-11 15:20     ` Robert Pluim
  1 sibling, 0 replies; 6+ messages in thread
From: Robert Pluim @ 2011-03-11 15:20 UTC (permalink / raw)
  To: ding; +Cc: emacs-w3m

jidanni@jidanni.org writes:

> ;;CAN somebody TELL me how to DO this Right?
> (setq
>  gnus-article-prepare-hook
>  (function
>   (lambda ()
>     (if(string-match-p "tw-blog-sys@yahoo-inc\\.com" 
> 		       (prin1-to-string gnus-current-headers))
> ;;; see how dumb I am ^^^^^^^^^^^^^^^^^ but how else can you do this?
>

(mail-header-from gnus-current-headers) ?

(I cheated and used 'grep' :) )

Regards

Robert




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

* Re: mm-inline-text-html-with-images only when From certain people
  2011-03-06  5:35 mm-inline-text-html-with-images only when From certain people jidanni
  2011-03-08  5:10 ` jidanni
@ 2011-03-15 17:30 ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-03-15 17:30 UTC (permalink / raw)
  To: ding

jidanni@jidanni.org writes:

> Gentlemen, (info "(emacs-w3m) Gnus") says:
>      Also put the following line if you want to show images inline in
>      article buffers:
>           (setq mm-inline-text-html-with-images t)
>
> But what that Info page should also mention is how to do that only for
> messages "^From: certain people".

I don't think there's any built-in way to do that?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

end of thread, other threads:[~2011-03-15 17:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-06  5:35 mm-inline-text-html-with-images only when From certain people jidanni
2011-03-08  5:10 ` jidanni
2011-03-11 15:10   ` Show Me Images Only when From certain Pe o p le jidanni
2011-03-11 15:19     ` Julien Danjou
2011-03-11 15:20     ` Robert Pluim
2011-03-15 17:30 ` mm-inline-text-html-with-images only when From certain people Lars Magne Ingebrigtsen

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