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

Tschoeeee

        Roland

-- 
 * [EMAIL PROTECTED] * http://www.spinnaker.de/ *

Reply via email to