Byrial Jensen:
 |> I want to autoview PDFs, but also be able to kick off acroread.
 |> 
 |>    application/pdf; pdf2txt %s; needsterminal; copiousoutput
 |>    application/pdf; acroread %s
 |
 |The first usable mailcap entry is always used. Try to reverse the
 |two lines.

Actually, that doesn't work.  Here's the problem.  Mutt takes the first
~/.mailcap entry it likes, but Netscape takes the last one.

This works for Netscape, and mutt just never sees acroread:

     application/pdf; pdf2txt %s; needsterminal; copiousoutput
     application/pdf; acroread %s

This breaks Netscape:

     application/pdf; acroread %s
     application/pdf; pdf2txt %s; needsterminal; copiousoutput

as does this:

     application/pdf; pdf2txt %s; needsterminal; copiousoutput
     application/pdf; acroread %s; test=test -n "$DISPLAY"

because Netscape doesn't know about these mailcap entry flags, and it (or
acroread, or some program) generates a bunch of a"Error (####): Bad
colorspace" failures in a Netscape error dialog.  acroread never comes
up.

Is living without acroread in mutt the best solution?
Maintaining parallel mailcaps isn't really a good option.

Thanks,

Randall

-- 
Randall Hopper
[EMAIL PROTECTED]

Reply via email to