>>>>> In <[EMAIL PROTECTED]> >>>>> 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)) `---- _______________________________________________ info-gnus-english mailing list [email protected] http://lists.gnu.org/mailman/listinfo/info-gnus-english
