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 736950 - Message with empty body and attachment shows body as attachment.dat
Message with empty body and attachment shows body as attachment.dat
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.12.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2014-09-19 07:46 UTC by Daniel Kenzelmann
Modified: 2014-11-19 20:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of message with empty body (48.02 KB, image/png)
2014-09-19 07:46 UTC, Daniel Kenzelmann
Details
Message source with empty body (8.02 KB, text/plain)
2014-09-19 07:48 UTC, Daniel Kenzelmann
Details
debug log for creating and looking at message with empty body (94.85 KB, text/plain)
2014-09-19 07:49 UTC, Daniel Kenzelmann
Details

Description Daniel Kenzelmann 2014-09-19 07:46:52 UTC
Created attachment 286584 [details]
Screenshot of message with empty body

Steps:
- Create plain text message, do not enter anything in the body.
- Attach a file (e.g. a .png file)
- Send to yourself
- Open message
- OBSERVE: No message body displayed, instead it shows TWO attachments:
"attachment.dat" with 3 bytes
and the attached file.


Attached are:
- screenshot (empty_body.png)
- message source (test.mbox)
- debug log (evo_body_log.txt)
Comment 1 Daniel Kenzelmann 2014-09-19 07:48:13 UTC
Created attachment 286585 [details]
Message source with empty body
Comment 2 Daniel Kenzelmann 2014-09-19 07:49:10 UTC
Created attachment 286586 [details]
debug log for creating and looking at message with empty body
Comment 3 Milan Crha 2014-11-19 20:52:13 UTC
Thanks for a bug report. I can confirm this. The problem was that the text/plain parser skipped empty parts without adding corresponding part into the queue, which confused multipart/mixed parser and it added the empty body as an attachment. I fixed this with:

Created commit 110bac4 in evo master (3.13.8+) [1]
Created commit ac16097 in evo evolution-3-12 (3.12.9+)

[1] https://git.gnome.org/browse/evolution/commit/?id=110bac4