Bug 1401567

Summary: multipart/related HTML + image attachments not shown in viewer
Product: Red Hat Enterprise Linux 7 Reporter: Don Pellegrino <don>
Component: muttAssignee: Matej Mužila <mmuzila>
Status: CLOSED NOTABUG QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.3CC: databases-maint, don, hhorak
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-26 12:28:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Don Pellegrino 2016-12-05 15:06:19 UTC
Description of problem:

Using mutt with the default mailcap, Firefox is used to view text/html attachments that are part of a multipart/related attachment. However, the image/jpeg attachements that are part of the same multipart/related attachment are not rendered. Instead they are shown as broken links.

Version-Release number of selected component (if applicable):

$ rpm -qi mutt
Name        : mutt
Epoch       : 5
Version     : 1.5.21
Release     : 26.el7
Architecture: x86_64
Install Date: Mon 10 Oct 2016 12:41:54 PM EDT
Group       : Applications/Internet
Size        : 6156971
License     : GPLv2+ and Public Domain
Signature   : RSA/SHA256, Wed 02 Apr 2014 12:16:01 PM EDT, Key ID 199e2f91fd431d51
Source RPM  : mutt-1.5.21-26.el7.src.rpm
Build Date  : Fri 14 Mar 2014 07:33:47 AM EDT
Build Host  : x86-019.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : http://www.mutt.org/
Summary     : A text mode mail user agent
Description :
Mutt is a small but very powerful text-based MIME mail client.  Mutt
is highly configurable, and is well suited to the mail power user with
advanced features like key bindings, keyboard macros, mail threading,
regular expression searches and a powerful pattern matching language
for selecting groups of messages.

How reproducible:

Always

Steps to Reproduce:

1. Use mutt to view an IMAP folder.
2. Open an IMAP message having a multipart/related attachment made of html and images.
3. Observe the Firefox opens and renders the html but displays broken links where the images should be rendered.

Expected results:

The HTML with images should be rendered.

Additional info:

Not sure if this should be a bug against mutt or mailcap.

Comment 2 Matej Mužila 2017-01-19 08:50:29 UTC
Hi.

In fact firefox cannot display text/html attachment properly. In mails are used resource locators different to locators used in web [1] therefore firefox shows
it as a broken link.

The other problem is that when you view an text/html attachment in mutt,
only the text/html part is extracted and sent to firefox (or any other 
program). No other parts (eg. the images) are extracted from the mail message.



[1] https://tools.ietf.org/html/rfc2392