* On 01 Apr 2011, Leonardo M. Ramé wrote: 
> Hi, when I receive HTML mails, I can see all its files in the
> attachments view, that is, the html itself, and all of its images.
> 
> When I select the main html file, the default web browser is opened and
> I can see the html file alone, the images are not loaded.
> 
> How can I let Mutt force showing the images?

I'm guessing that your HTML messages contain image attachments with
Content-ID: MIME headers -- e.g.

--boundary-string
Content-ID: <5.1.1.6.2.20030724163449.01cb6bd0@hostname>
Content-Type: image/jpeg; name=attachment1.jpg
Content-Disposition: inline; filename="1ff7346.jpg"
Content-Transfer-Encoding: base64

[base64 data]

And that your HTML text has <img> nodes like:

<img src="cid:5.1.1.6.2.20030724163449.01cb6bd0@hostname" alt="1ff7346.jpg">

If I'm wrong, disregard the rest of this message.

This is an internal content reference.  It works in mail readers
that handle HTML internally because the content reference
("cid:5.1.1.6...@hostname") cites a Content-ID: MIME header that's
present in the same message.  It doesn't work in Mutt because Mutt has
passed the HTML MIME element to an external HTML reader and the cid:
references are no longer valid -- there are no MIME elements associated
with the HTML stream that the browser sees.

To read such a message you need a program that is rfc2822-aware and
handled both HTML rendering and content-id chasing, or a view wrapper
that can save your message and all content-id attachments together (e.g.
to a directory) and then rewrite the HTML so that cid: src references
refer instead to static files on disk.

I don't know of such a wrapper offhand, sorry, but maybe the explanation
will help you find something.

-- 
David Champion • d...@uchicago.edu • IT Services • University of Chicago

Reply via email to