On Thu, Jun 08, 2000 at 02:59:21PM +0200, Roland Rosenfeld wrote:
> On Thu, 08 Jun 2000, Randall Hopper wrote:
>
> > I want to autoview PDFs, but also be able to kick off acroread.
> > Autoview works, but I can't figure out how to kick off acroread in mutt.
>
> > application/pdf; pdf2txt %s; needsterminal; copiousoutput
> > application/pdf; acroread %s
> >
> > The first should be used for autoview. And the second should be
> > used for view-attach, right? However view-attach also uses pdf2txt
> >
> > Anyone see what I'm doing wrong? I thought this worked at some point.
>
> Try reversing the order of these two lines. The mailcap is searched
> top down and the first match is used. If you change the order of
> these two lines, view-attach will find acroread first while auto-view
> ignores acroread and uses pdf2txt because it only uses copiousoutput
> lines.
>
> BTW: does it make sense to combine "needsterminal" and "copiousoutput"
> in one mailcap entry? As far as I understand they are quite contrary,
> because "needsterminal" needs a terminal with user input while
> "copiousoutput" pipes the output to some kind of pipe.
>
> So I would change the above entries to something like this:
>
> application/pdf; acroread %s; test=test -n "$DISPLAY"
> application/pdf; pdf2txt %s; copiousoutput
I agree with Roland. That should fix it. I would like to do this too,
but I do not know about pdf2txt. Could someone please post a source for
it and perhaps add a link to the www.mutt.org pages - I do not think it
is there vut could of course be wrong.
Cheers, Brian.
> Tschoeeee
>
> Roland
>
> --
> * [EMAIL PROTECTED] * http://www.spinnaker.de/ *
--
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]
School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia. Phone 08-89466702.
Fax 08-89466847 http://www.smps.ntu.edu.au/school/compchem.html