On Wed, Jan 09, 2013 at 05:20:41PM +0100, Marco wrote:
I display PDF files inline using

 auto_view application/pdf

In my mailcap I have set to open PDF files with pdftotext.

 application/pdf; pdftotext -layout '%s' -; copiousoutput;

However, I want pdftotext only to be used for *inline* display. When
I'm in the attachment view and press enter I'd like to view the PDF
with xpdf.

How can I achieve that?

I believe you can do what you want by adding a second line in your mailcap:

        application/pdf; xpdf '%s'
        application/pdf; pdftotext -layout '%s' -; copiousoutput;

The order here is important. auto_view will skip over entries without 'copiousoutput'.

Reply via email to