previewing images inside mutt

This is a discussion on previewing images inside mutt within the Mutt forums in Other Technologies category; Hi, I use some mailcap entries to have a previewing of some attachments in mutt. For example for pdf file there is the line: application/pdf; pdftotext -layout %s /dev/stdout; copiousoutput That works very well. But I would like to preview images too. For viewing images on the virtual terminal I use fbi, an image viewer for the framebuffer. I have an entry for this application in my mailcap file and it works well with the w3m browser. If one does not know how this looks, I put a screenshot on http://mherrn.de/shot.png . So I would like to have a similar ...

Go Back   Application Development Forum > Other Technologies > Mutt

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-16-2004, 08:14 AM
Marco Herrn
Guest
 
Default previewing images inside mutt

Hi,

I use some mailcap entries to have a previewing of some attachments in
mutt. For example for pdf file there is the line:

application/pdf; pdftotext -layout %s /dev/stdout; copiousoutput

That works very well.
But I would like to preview images too. For viewing images on the
virtual terminal I use fbi, an image viewer for the framebuffer. I have
an entry for this application in my mailcap file and it works well with
the w3m browser. If one does not know how this looks, I put a screenshot
on http://mherrn.de/shot.png.
So I would like to have a similar previewing in mutt. But that does not
work. When opening a mail with image attachments in mutt, each
attachment is given to fbi, but fbi fails to open that image. When all
images are tried, I see the mail where the following info is given:

[-- Attachment #2: monitoring.png --]
[-- Type: image/png, Encoding: base64, Size: 19K --]

[-- Autoview using fbi "'/tmp/monitoring.H5WaDL.png'" --]
[-- Autoview stderr of fbi "'/tmp/monitoring.H5WaDL.png'" --]
using linux console font "/usr/share/consolefonts/lat1-16.psf.gz"
map: vt04 => fb0
open '/tmp/monitoring.H5WaDL.png': No such file or directory

So what can be the problem here? Is there even a way to have have the
images displayed at the same time with the text as with w3m?
If not, I still want to open images with the view-attachments command in
mutt and opening each attachment directly. At least that should work.

This is my mailcap entry for images:

image/*; fbi "%s" ; copiousoutput

It would be great if someone has any help to me.

Marco


--
Marco Herrn herrn@gmx.net
(GnuPG/PGP-signed and crypted mail preferred)
Key ID: 0x94620736

Reply With Quote
  #2  
Old 05-17-2004, 02:26 PM
Paul Walker
Guest
 
Default Re: previewing images inside mutt

On 16 May 2004 12:14:48 GMT, Marco Herrn wrote:

> map: vt04 => fb0
> open '/tmp/monitoring.H5WaDL.png': No such file or directory


Does fbi 'background' when it runs? mutt will delete the temporary file as
soon as the viewer process exits, which looks like what's happening. Search
on google groups for previous occasions where attachment viewers have come
up, there's various solutions in there.

--
Paul

Do hungry crows have ravenous appetites?
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:55 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.