After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 217678 - Message parser not detecting attached file on multipart/alternative message
Message parser not detecting attached file on multipart/alternative message
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
pre-1.5 (obsolete)
Other All
: Normal major
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2001-12-19 18:02 UTC by Richard C. Perrin
Modified: 2002-01-31 02:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Richard C. Perrin 2001-12-19 18:02:46 UTC
Description of Problem:
I received a multipart/alternative message (you know: the ugly text/HTML)
with an attached jpeg file.  Evolution does not display the attachment at
all. The message parser seems to have not clue that the jpeg file is attached.

The message format appears to be a multipart/related or which the first
part is the multipart/alternative text and the second part is the attached
jpeg.

The encoded attachment text shows up if you select 'View -> Message Display
-> Show email source', but is never visible otherwise. I've only had the
problem on the multipart alternative messages. I was able to save the
attachment with mutt, then forward it back to myself (reattaching the file)
and evolution would be able to see the file.

Steps to reproduce the problem:
I've enclosed a link to an example message (from my Mom :) under
'Additional Information'.

How often does this happen? 
I've received two emails of this format (both mailed from Outlook 8.5) both
suffering from the problem.

Additional Information:
A sample message exhibiting the problem can be found at
http://lifesavers.ca/~rcp/evobug.msg
Comment 1 Jeffrey Stedfast 2002-01-03 20:44:32 UTC
each part inside an multipart/alternative is an "alternate" way of
displaying the message. This, if you have a text/html part and an
image/jpeg part in the multipart/alternative, you only show 1 of the 2
parts.

now, if it was a multipart/mixed, then we'd display whatever parts we
could and show the others as attachments.

so technically this is not a bug with Evolution but rather with the
client that sent the original message.
Comment 2 Jeffrey Stedfast 2002-01-03 20:46:55 UTC

*** This bug has been marked as a duplicate of 202741 ***
Comment 3 Dan Winship 2002-01-08 16:25:30 UTC
The MIME structure is correct:

multipart/related
  multipart/alternative
    text/plain
    text/html
  image/jpeg

Evo displays the text/html variant of the multipart/alternative,
but for some reason does not pick up the image/jpeg referenced
by cid. Maybe it doesn't think the cid is valid? (It's unusual,
but looks rfc-compliant to me.)
Comment 4 Not Zed 2002-01-31 02:19:25 UTC
Looks like the [] syntax has never been tested.

The decoder was converting [foo] into [ foo ], I guess for readability
when it was first written 2 years ago.  I've fixed it up (in head
version).
Nice pic btw.