* display "[cid]" images inline?
@ 2006-11-01 7:55 William Xu
2006-11-01 11:09 ` Reiner Steib
0 siblings, 1 reply; 10+ messages in thread
From: William Xu @ 2006-11-01 7:55 UTC (permalink / raw)
Hi,
At times, i find there are some "[cid]" symbols in mails. When i press
enter on it, it could display as images. How to make it display inline
automatically?
--
William
Television is now so desperately hungry for material that it is scraping
the top of the barrel.
-- Gore Vidal
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: display "[cid]" images inline?
2006-11-01 7:55 display "[cid]" images inline? William Xu
@ 2006-11-01 11:09 ` Reiner Steib
2006-11-02 3:57 ` William Xu
[not found] ` <mailman.47.1162439843.2155.info-gnus-english@gnu.org>
0 siblings, 2 replies; 10+ messages in thread
From: Reiner Steib @ 2006-11-01 11:09 UTC (permalink / raw)
On Wed, Nov 01 2006, William Xu wrote:
> At times, i find there are some "[cid]" symbols in mails. When i press
> enter on it, it could display as images. How to make it display inline
> automatically?
You didn't mention which `mm-text-html-renderer' you are using. w3m
has `mm-w3m-safe-url-regexp':
,----[ (info "(emacs-mime)Display Customization") ]
| `mm-w3m-safe-url-regexp'
| A regular expression that matches safe URL names, i.e. URLs that
| are unlikely to leak personal information when rendering HTML
| email (the default value is `\\`cid:'). If `nil' consider all
| URLs safe.
`----
(See (info "(emacs-mime)Display Customization") for more options.)
<news:v94q2jmhab.fsf@marauder.physik.uni-ulm.de> in Gmane is a test
article for this and it works fine for me.
See <http://article.gmane.org/gmane.test/2815>, add "/raw" to download
the raw article.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: display "[cid]" images inline?
2006-11-01 11:09 ` Reiner Steib
@ 2006-11-02 3:57 ` William Xu
[not found] ` <mailman.47.1162439843.2155.info-gnus-english@gnu.org>
1 sibling, 0 replies; 10+ messages in thread
From: William Xu @ 2006-11-02 3:57 UTC (permalink / raw)
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> You didn't mention which `mm-text-html-renderer' you are using.
It's w3m here.
> w3m has `mm-w3m-safe-url-regexp':
> <news:v94q2jmhab.fsf@marauder.physik.uni-ulm.de> in Gmane is a test
> article for this and it works fine for me.
With settings,
,----
| (setq mm-text-html-renderer 'w3m)
|
| (setq mm-inline-text-html-with-images t
| w3m-safe-url-regexp nil)
`----
The `altern' part could display automatically. But the `hier' part still
won't. Any clue?
--
William
I give you the man who -- the man who -- uh, I forgets the man who?
-- Beauregard Bugleboy
^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <mailman.47.1162439843.2155.info-gnus-english@gnu.org>]
* Re: display "[cid]" images inline?
[not found] ` <mailman.47.1162439843.2155.info-gnus-english@gnu.org>
@ 2006-11-02 11:00 ` Katsumi Yamaoka
2006-11-03 4:08 ` William Xu
2006-11-02 11:27 ` Katsumi Yamaoka
1 sibling, 1 reply; 10+ messages in thread
From: Katsumi Yamaoka @ 2006-11-02 11:00 UTC (permalink / raw)
>>>>> In <mailman.47.1162439843.2155.info-gnus-english@gnu.org>
>>>>> William Xu wrote:
> The `altern' part could display automatically. But the `hier' part still
> won't. Any clue?
The reason the `hier' part is not displayed is that it uses the
`<a href="...">' tag. Copy the article to the mail group in
which articles can be edited, edit the article using `e' as
follows, type `C-c C-c' to end edit, and you will see the image.
<<<
Link to <a href="http://theotp1.physik.uni-ulm.de/pics/vh40.gif">hier</a>
>>>
Link to <img src="http://theotp1.physik.uni-ulm.de/pics/vh40.gif" alt="hier">
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: display "[cid]" images inline?
[not found] ` <mailman.47.1162439843.2155.info-gnus-english@gnu.org>
2006-11-02 11:00 ` Katsumi Yamaoka
@ 2006-11-02 11:27 ` Katsumi Yamaoka
2006-11-02 12:12 ` Reiner Steib
1 sibling, 1 reply; 10+ messages in thread
From: Katsumi Yamaoka @ 2006-11-02 11:27 UTC (permalink / raw)
>>>>> In <mailman.47.1162439843.2155.info-gnus-english@gnu.org>
>>>>> William Xu wrote:
>| (setq mm-inline-text-html-with-images t
>| w3m-safe-url-regexp nil)
Setting `w3m-safe-url-regexp' to nil is generally dangerous.
Here is an extract from the emacs-w3m Info manual:
,----[ (info "(emacs-w3m)Gnus") ]
|* Notes
|
| The above description about spam and ham is not for kidding, it's
| just here to get your attention. Some HTML mails might contain a
| nasty trick used by spammers, using the `<img>' tag which is far
| more evil than the `Click Here!' button. It is most likely
| intended to check whether the ominous spam mail has reached your
| eyes or not, in which case the spammer knows for sure that your
| email address is valid. It is done by embedding an identifier
| string into a URL that you might automatically retrieve when
| displaying the image. If the `mm-w3m-safe-url-regexp' variable
| has not been changed from the default value, Gnus will never
| connect to the spammer's site arbitrarily.
|
| You can display images inline in an article buffer if you set
| `mm-inline-text-html-with-images' to `t', can't you? No, not
| exactly: you're still being protected. If you don't care about
| leaking information (i.e. the fact that your mail address is
| reachable), set the `mm-w3m-safe-url-regexp' variable to `nil'.
| The default value for `mm-w3m-safe-url-regexp' is `"\\`cid:"'
| which means we consider that images included in a mail with the
| `cid:' URL are safe (that is, you can display such images without
| modifying the `mm-w3m-safe-url-regexp' variable).
|
|* Giveaway
|
| Even when you are in the summary buffer, you can toggle displaying
| of images in the article buffer. It is effective only when those
| images are displayed by emacs-w3m, though. Here's an example:
|
| (defun gnus-summary-w3m-safe-toggle-inline-images (&optional arg)
| "Toggle displaying of all images in the article buffer.
| If the prefix arg is given, all images are considered to be safe."
| (interactive "P")
| (save-excursion
| (set-buffer gnus-article-buffer)
| (w3m-safe-toggle-inline-images arg)))
|
| (eval-after-load "gnus-sum"
| '(define-key gnus-summary-mode-map
| "\C-i" 'gnus-summary-w3m-safe-toggle-inline-images))
`----
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: display "[cid]" images inline?
2006-11-02 11:27 ` Katsumi Yamaoka
@ 2006-11-02 12:12 ` Reiner Steib
2006-11-02 15:41 ` Katsumi Yamaoka
2006-11-03 4:18 ` William Xu
0 siblings, 2 replies; 10+ messages in thread
From: Reiner Steib @ 2006-11-02 12:12 UTC (permalink / raw)
On Thu, Nov 02 2006, Katsumi Yamaoka wrote:
>>| (setq mm-inline-text-html-with-images t
>>| w3m-safe-url-regexp nil)
>
> Setting `w3m-safe-url-regexp' to nil is generally dangerous.
> Here is an extract from the emacs-w3m Info manual:
The manual you cite is about `mm-w3m-safe-url-regexp', not about
`w3m-safe-url-regexp'.
The default value of `w3m-safe-url-regexp' in fact is nil
(`w3m-version' is "w3m/0.5.1").
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: display "[cid]" images inline?
2006-11-02 12:12 ` Reiner Steib
@ 2006-11-02 15:41 ` Katsumi Yamaoka
2006-11-03 4:18 ` William Xu
1 sibling, 0 replies; 10+ messages in thread
From: Katsumi Yamaoka @ 2006-11-02 15:41 UTC (permalink / raw)
>>>>> In <v9u01i82tm.fsf@marauder.physik.uni-ulm.de>
>>>>> Reiner Steib <reinersteib+gmane@imap.cc> wrote:
> On Thu, Nov 02 2006, Katsumi Yamaoka wrote:
>>>| (setq mm-inline-text-html-with-images t
>>>| w3m-safe-url-regexp nil)
>>
>> Setting `w3m-safe-url-regexp' to nil is generally dangerous.
>> Here is an extract from the emacs-w3m Info manual:
> The manual you cite is about `mm-w3m-safe-url-regexp', not about
> `w3m-safe-url-regexp'.
> The default value of `w3m-safe-url-regexp' in fact is nil
> (`w3m-version' is "w3m/0.5.1").
Ah, yes. `w3m-safe-url-regexp' is overridden by
`mm-w3m-safe-url-regexp', `mew-w3m-safe-url-regexp', or
`mime-w3m-safe-url-regexp'. If `mm-w3m-safe-url-regexp' is
still "\\`cid:", you are safe. :)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: display "[cid]" images inline?
2006-11-02 12:12 ` Reiner Steib
2006-11-02 15:41 ` Katsumi Yamaoka
@ 2006-11-03 4:18 ` William Xu
1 sibling, 0 replies; 10+ messages in thread
From: William Xu @ 2006-11-03 4:18 UTC (permalink / raw)
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> On Thu, Nov 02 2006, Katsumi Yamaoka wrote:
>
>>>| (setq mm-inline-text-html-with-images t
>>>| w3m-safe-url-regexp nil)
>>
>> Setting `w3m-safe-url-regexp' to nil is generally dangerous.
>> Here is an extract from the emacs-w3m Info manual:
>
> The manual you cite is about `mm-w3m-safe-url-regexp', not about
> `w3m-safe-url-regexp'.
Ah...actually i meant `mm-w3m-safe-url-regexp', but made a typo. :-)
--
William
Fortune's Real-Life Courtroom Quote #19:
Q: Doctor, how many autopsies have you performed on dead people?
A: All my autopsies have been performed on dead people.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-11-03 7:52 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-01 7:55 display "[cid]" images inline? William Xu
2006-11-01 11:09 ` Reiner Steib
2006-11-02 3:57 ` William Xu
[not found] ` <mailman.47.1162439843.2155.info-gnus-english@gnu.org>
2006-11-02 11:00 ` Katsumi Yamaoka
2006-11-03 4:08 ` William Xu
2006-11-03 7:52 ` William Xu
2006-11-02 11:27 ` Katsumi Yamaoka
2006-11-02 12:12 ` Reiner Steib
2006-11-02 15:41 ` Katsumi Yamaoka
2006-11-03 4:18 ` William Xu
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).