Spaces in attached file names
If I attach a file with spaces in the path then hit <return> to view
the file only part of the file name is sent to the associated program.
For example I had a pdf file '/home/moseley/docs/pdf/day summary.pdf'
hitting <return> I get:
Error: Couldn't open file '/home/moseley/docs/pdf/day'
Press any key to continue...
Is this a problem in my mailcap file? Doesn't seem so as %s is
quoted. So is mutt not sending the entire path?
moseley@bumby:~$ fgrep 'application/pdf' .mailcap /etc/mailcap
/etc/mailcap:application/pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != "";
description=Portable Document Format; nametemplate=%s.pdf
/etc/mailcap:application/pdf; /usr/bin/acroread '%s'; test=test -n "$DISPLAY";
description=Portable Document Format; nametemplate=%s.pdf
/etc/mailcap:application/pdf; /usr/bin/gv '%s'; test=test -n "$DISPLAY"
/etc/mailcap:application/pdf; false; x-mozilla-flags=plugin:nppdf.so
I can pipe to gv wthout problem:
|gv -
--
Bill Moseley
moseley@xxxxxxxx