Re: [nail-devel] Is there a way to configure to prompt before opening an attachment?
Brought to you by:
gritter
From: Gunnar R. <Gun...@pl...> - 2005-01-14 17:33:18
|
ma...@st... wrote: > What I would love to be able to do, is to receive an email with a pdf > attachment. When I open to read it, I would like something like: > > Found attachment: coolDocToRead.pdf > Would you like to open using: cat >/tmp/nail$$.pdf; acroread /tmp/nail$$.pdf; rm /tmp/nail$$.pdf > ([Y]/N): You could do set pipe-application/pdf="\ if xmessage -buttons OK:0,Cancel:1 'Would you like to open using acroread?'; \ then \ cat >/tmp/nail$$.pdf; acroread /tmp/nail$$.pdf; rm /tmp/nail$$.pdf; \ fi" (or use the "gmsg" program from my home page if you don't like xmessage). It is unfortunately not possible to ask the question on the terminal with the current mechanism since the pager also reads its command input from it, and thus the answer would get lost or become garbled. Gunnar |