Stephen Gran on 1 Jun 2006 10:03:47 -0000

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Confused about using cacview with mutt and mailcap entries

On Thu, Jun 01, 2006 at 12:41:12AM -0400, Mike Leone said:
> Anyway, I'm confused about the mailcap entries. I have this, in /etc/mailcap:
> image/jpeg; /usr/bin/cacaview '%s'; test=test -n "$DISPLAY"
> but when I try and view an attachment that mutt says  is "image/jpeg", mutt
> tells me "No matching mailcap entry found. Viewing as text". So what am I
> doing wrong? Mailcap files confuse me. :-)

When it fails, run the test yourself, 'echo $DISPLAY'.  If it's unset,
then that line doesn't match.  It looks like cacaview wants an X server
to display on.  I just ssh -X here, and let display do it.  It can be
tedious if I'm on a slow link, but Iususally just don't bother until I'm
on a better one.
|  Stephen Gran                  | "And I don't like doing silly things    |
|             | (except on purpose)."              --   |
| | Larry Wall in                           |
|                                | <>     |

Attachment: signature.asc
Description: Digital signature

Philadelphia Linux Users Group         --
Announcements -
General Discussion  --