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    |
|  steve@lobefin.net             | (except on purpose)."              --   |
|  http://www.lobefin.net/~steve | Larry Wall in                           |
|                                | <1992Jul3.191825.14435@netlabs.com>     |
 --------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug