GNOME Bugzilla – Bug 766713
Remove attachment does not work on multiple level message structure
Last modified: 2016-05-25 21:04:00 UTC
If I try to remove an attachment from one certain message (and also others), nothing seems to happen, and the attachment is not removed. As pointed out by Milan on the evo list [1]: The message has a structure like multipart/alternative text/plain multipart/mixed text/html application/pdf text/html The attachment removal in the evolution searches only on the first level, it doesn't check content of the multipart/mixed, thus it doesn't notice the application/pdf part. It should be able to search on the next level(s), too, and thus remove attachments from messages of this type.
[1]: https://mail.gnome.org/archives/evolution-list/2016-May/msg00127.html
Thanks for a bug report. I fixed it with the below commits. Ther eis still an "issue" of detecting that the message has an attachment, as in your case the file is marked with "inline" Content-Disposition, where these are skipped intentionally, because such are usually images, thus something what can be shown in the HTML content inline and doesn't mean to be a real attachment. That's only about the attachment icon in the message list (and an availability of the "Remove Attachments" function, the actual removal removes those inline-s regardless. Created commit 28ba0cb in evo master (3.21.3+) Created commit 0c65eb6 in evo gnome-3-20 (3.20.3+)