[mew-int 2461] Bug in mew-browse-url-at-mouse with w3m

Gernot Heiser gernot at example.com
Fri Apr 18 14:56:09 JST 2008


This is a bug that has been annoying me for years, across several
versions of emacs and mew. I've finally taken the time to reproduce it
in a minimal environment.

The symptoms: I receive a mail that is Text/Html in
Multipart/Alternative. It contains a link of the type <a href="url">here</a>.

I mouse-2 click on the link, and mew hands "here" to the browser,
instead of "url".

Exact action:

1) Start up emacs without arguments

2) In emacs, type "\M-x mew <CR>"

3) Move to (only) message in inbox

4) type "." to display message. Shows "here" in blue indicating
   link. Moving the mouse over "here" shows the URL "http://nicta.com.au/".

5) Click middle mouse button on link. Browser starts up, displaying a
   "server not found" message and "http://www.here./" in the URL
   window.

This is run in an as-close-as-possible vanilla environment. Emacs
version is 22.1.1 on Ubuntu, Mew version is 5.2 (but as I said, I had
the same with older versions of emacs and mew). All other relevant
stuff below:

vanilla at example.com:~$ w3m -version
w3m version w3m/0.5.1+cvs-1.968, options lang=en,m17n,image,color,ansi-color,mouse,gpm,menu,cookie,ssl,ssl-verify,external-uri-loader,w3mmailer,nntp,gopher,ipv6,alarm,mark,migemo
vanilla at example.com:~$ cat .emacs
(autoload 'mew "mew" nil t)
(setq mew-mail-path "~/mail")
(setq thing-at-point-url-path-regexp "[/A-Za-z0-9---_.${}#%,:?=&~]+")
vanilla at example.com:~$ cat .mew.el
(setq mew-mime-multipart-alternative-list '("Text/Html" "Text/Plain" ".*"))
(condition-case nil
    (require 'mew-w3m)
  (file-error nil))
vanilla at example.com:~$ cat mail/inbox/1
>From someone at example.com   Mon Dec  3 10:29:20 2007
MIME-Version: 1.0
Message-ID: <09D3F703EF3B0A4CBE28449EA9F3D320056863D4 at example.com>
content-class: urn:content-classes:message
Content-Type: multipart/alternative;
        boundary="----_=_NextPart_001_01C8353A.F7B46870"
Subject: URL bug
From: Some One <someone at example.com>
To: Me <me at example.com>
Date: Mon, 3 Dec 2007 10:27:56 +1100
X-Mew: Text/Html in Multipart/Alternative as a singlepart

This is a multi-part message in MIME format.

------_=_NextPart_001_01C8353A.F7B46870
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Please click here
<http://nicta.com.au/> .

------_=_NextPart_001_01C8353A.F7B46870
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
</head>
<body lang=3DEN-AU>

<p>
Please click =
<i><u><a
href=3D"http://nicta.com.au/">here</a></u></i>.

</body>

</html>

------_=_NextPart_001_01C8353A.F7B46870--

vanilla at example.com:~$ printenv
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=127.0.0.1 57997 22
SSH_TTY=/dev/pts/34
LC_ALL=en_AU.UTF-8
USER=vanilla
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:
MAIL=/var/mail/vanilla
PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
PWD=/home/vanilla
LANG=en_AU.UTF-8
HISTCONTROL=ignoreboth
SHLVL=1
HOME=/home/vanilla
LOGNAME=vanilla
SSH_CONNECTION=127.0.0.1 57997 127.0.0.1 22
LC_CTYPE=en_AU.UTF-8
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=localhost:10.0
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/printenv
OLDPWD=/home/vanilla/mail/inbox
vanilla at example.com:~$ 



More information about the Mew-int mailing list