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 789648 - Problem viewing .eml attachment
Problem viewing .eml attachment
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.22.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2017-10-30 11:10 UTC by Andrea Vai
Modified: 2017-11-02 11:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test message (3.15 KB, text/plain)
2017-11-02 11:10 UTC, Milan Crha
Details

Description Andrea Vai 2017-10-30 11:10:11 UTC
I cannot view an eml attachment in evolution 3.22.6.
The eml is displayed correctly in another mail client.
I found this one in the list archives:

https://mail.gnome.org/archives/evolution-list/2009-November/msg00120.html

but if I click on the arrow, it expands only a blank line (actually,
the line appears already expanded when I open the message). Double-
click on the attach itself in the attachment bar does nothing.

See also the related discussion starting at

https://mail.gnome.org/archives/evolution-list/2017-October/msg00125.html
Comment 1 Milan Crha 2017-10-31 16:36:17 UTC
Thanks for a bug report. I can reproduce it too with a test message on the current development version, unfortunately bugzilla doesn't let me upload it here (ends with error 500). The trick is that the message attachment is set as application/octet-stream and its name ends with ".eml" extension.

Removing the ".eml" extension from the name makes the attachment non-expandable in the UI. Changing content type to application/mbox hides the attachment completely, changing the content type to message/rfc822 shows the attached message as expected.
Comment 2 Ángel 2017-10-31 21:18:27 UTC
If the attached email is not identified correctly, I'm not sure it's a bug that evolution is unable to show it inline. The approach should probably be to treat that as an attachment, thus making this a duplicate of bug 401668 (since evolution doesn't support opening an email file).
Comment 3 Milan Crha 2017-11-02 11:09:19 UTC
I found a way how to show that application/octet-stream as a message attachment. The change also enhances the application/mbox parser, when the mbox attachment has missing From line, then the parser tries to read the content as one message. And if even that fails, then it claims failure, thus the attachment can be shown in the UI, not hidden to the user.

Created commit a41a550eab in evo master (3.27.2+)
Created commit 8c1d84744d in evo gnome-3-26 (3.26.3+)
Comment 4 Milan Crha 2017-11-02 11:10:08 UTC
Created attachment 362807 [details]
test message