[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mailcap usage



On Fri, Oct 15, 1999 at 06:34:57PM +0200, J.H.M. Dassen Ray" wrote:
> On Sat, Oct 16, 1999 at 01:50:41 +1000, Hamish Moffatt wrote:
> > So, should netscape be reading /etc/mailcap on my system?
> 
> Yes. But the netscape binaries look for it as /usr/local/lib/mailcap or
> somesuch. I believe the current Netscape debs have been fixed to work around
> this and use the correct location.

I ran an "strace netscape |& grep mailcap" (excuse the tcsh) and got:
stat("/usr/lib/netscape/47/communicator/mailcap", 0xbffff640) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/netscape/mailcap", 0xbfffe4e8) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/netscape/mailcap", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/hamish/.mailcap", 0xbfffe4e8) = -1 ENOENT (No such file or directory)
open("/home/hamish/.mailcap", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/home/hamish/.mailcap", 0xbfffe534) = -1 ENOENT (No such file or directory)

The wrapper sets MAILCAP=/etc/mailcap, but that doesn't seem to do anything.
Once I linked ~/.mailcap to /etc/mailcap it does work. It looks like
a symlink in /usr/lib/netscape/xxx/communicator would work too. 

> > There doesn't seem to be any priorities specified in that file, so I could
> > end up with any one of those three pdf viewers.
> 
> mailcap.order(5) is your friend.

And netscape and see/run-mailcap disagree completely :-) see shows
me pdf files in gv, netscape runs xpdf.

> Looks fine for me as well. The bug report is too brief to be useful, wait if
> you get additional information; if not, close it.

Seems to run fine here.


Hamish
-- 
Hamish Moffatt VK3SB. CCs of replies on mailing lists are welcome.


Reply to: