[Alpine-info] Viewing html attachment opens new Safari

robert delius royar x11 at frinabulax.org
Thu Aug 14 05:13:19 PDT 2008


Wed, 13 Aug 2008 (19:01 -0700 UTC) Matt Ackeret wrote:


> If I try to view an html part of a message _in an external viewer_, it

> launches a new copy of Safari.

>

> But if I view image attachments, or open rdar links (from my other recent

> message), it uses the already-running copy of the app.

>

> (I don't typically view html parts in an external viewer -- I'm actually

> trying to reproduce an OS bug I previously saw when I accidentally opened

> an html attachment.)

>

> Anyway -- does anybody know if this particular issue is somehow

> an OS X or Safari issue? Since other attachment types seem to work properly,

> I'm not quite sure whose issue it is.


Matt,

I have the following in my ~/.pinerc:
mailcap-search-path=/Users/royar/.mailcaprc
In ~/.mailcaprc I had
text/html; /opt/local/bin/w3m -T text/html -o confirm_qq=false -O ansi '%s'; \
needsterminal; description=HTML Text; nametemplate=%s.html
Which I temporarily commented out. I saw the multiple launches you
described. Then, I added this line to .mailcaprc:
text/html; open %s
Launching an attached text/html file now opens the existing Safari (and
Alpine does not wait for it to terminate). I recall that when I used
X11 (GTK) Mozilla, I also saw the multiple opens unless I added
something similar to
'/opt/local/bin/mozilla -remote "openURL(${1},new-tab)"'
in an external script to which the text/html; entry in ~/.mailcaprc
pointed.

To me it looks that if it is an OS bug, then the magic that
/usr/bin/open performs overcomes it.

My OS version is 10.5.4 Safari is Version 4 Developer Preview
(5526.11.2). I use the WebKit nightly builds in the WebKit wrapper.

--
Dr. Robert Delius Royar Associate Professor of English
Morehead State University Morehead, Kentucky


More information about the Alpine-info mailing list