From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: emacs-w3m@namazu.org
Subject: Re: cid images with emacs-w3m ?
Date: Wed, 24 Jul 2002 11:46:45 +0900 [thread overview]
Message-ID: <yotlofcx6dwq.fsf__10419.7762826972$1042214412@jpl.org> (raw)
In-Reply-To: <microsoft-free.3oznwhq3zb.fsf@ournature.org>
[-- Attachment #1: Type: text/plain, Size: 546 bytes --]
>>>>> In <microsoft-free.3oznwhq3zb.fsf@ournature.org>
>>>>> Jinhyok Heo <novembre+dated+1027907928.307f54@ournature.org> wrote:
> Is it possible to see cid images(images which come within mails, not
> URL) with emacs-w3m?
Well, I think there is a nonsense logic in the function
`mm-inline-text-html-render-with-w3m' and the option
`mm-inline-text-html-with-images'. Could you try to use the
attached patch? You need to set the option
`mm-inline-text-html-with-images' to non-nil to see cid images:
(setq mm-inline-text-html-with-images t)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 2006 bytes --]
--- lisp/mm-decode.el~ 2002-04-30 02:01:14 +0000
+++ lisp/mm-decode.el 2002-07-24 02:40:56 +0000
@@ -127,14 +127,23 @@
(defcustom mm-inline-text-html-with-images nil
"If non-nil, Gnus will allow retrieving images in the HTML contents
-with <img> tags. It has no effect on Emacs/w3. For emacs-w3m, the
-value of the option `w3m-display-inline-images' will be bound with
-this value. In addition, the variable `w3m-safe-url-regexp' will be
-bound with the value nil if it is non-nil to make emacs-w3m show all
-images, however this behavior may be changed in the future."
+with <img> tags. It has no effect on Emacs/w3. See also
+the documentation for the option `mm-w3m-safe-url-regexp'.
:type 'boolean
:group 'mime-display)
+(defcustom mm-w3m-safe-url-regexp "\\`cid:"
+ "Regexp that matches safe url names. Some HTML mails might have the
+trick of spammers using <img> tags. It is likely to be intended to
+verify whether you have read the mail. You can prevent your personal
+informations from leaking by setting this to the regexp which matches
+the safe url names. The value of the variable `w3m-safe-url-regexp'
+will be bound with this value. You may set this value to nil if you
+consider all the urls to be safe."
+ :type '(choice (regexp :tag "Regexp")
+ (const :tag "All URLs are safe" nil)
+ :group 'mime-display))
+
(defcustom mm-inline-text-html-with-w3m-keymap t
"If non-nil, use emacs-w3m command keys in the article buffer."
:type 'boolean
--- lisp/mm-view.el~ 2002-04-08 01:21:51 +0000
+++ lisp/mm-view.el 2002-07-24 02:40:48 +0000
@@ -281,9 +281,7 @@
(when charset
(delete-region (point-min) (point-max))
(insert (mm-decode-string text charset)))
- (let ((w3m-safe-url-regexp (if mm-inline-text-html-with-images
- nil
- "\\`cid:"))
+ (let ((w3m-safe-url-regexp mm-w3m-safe-url-regexp)
(w3m-display-inline-images mm-inline-text-html-with-images)
w3m-force-redisplay)
(w3m-region (point-min) (point-max)))
next prev parent reply other threads:[~2002-07-24 2:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-07 14:06 emacs-w3m-1.3 TSUCHIYA Masatoshi
2002-07-17 6:05 ` emacs-w3m-1.3.1 TSUCHIYA Masatoshi
2002-07-24 2:00 ` cid images with emacs-w3m ? Jinhyok Heo
2002-07-24 2:46 ` Katsumi Yamaoka
2002-07-24 2:46 ` Katsumi Yamaoka [this message]
2002-09-05 3:13 ` emacs-w3m-1.3.2 TSUCHIYA Masatoshi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='yotlofcx6dwq.fsf__10419.7762826972$1042214412@jpl.org' \
--to=yamaoka@jpl.org \
--cc=emacs-w3m@namazu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).