On one of my emails I lose the contents of the email when deleting an jpg attachment. Expected behaviour is to just remove the image attachment and leave the other attachments alone. The result after using the "remove attachment" option from the context menu is: You deleted an attachment from this message. The original MIME headers for the attachment were: Content-Type: image/pjpeg name="XYZ" filename="XYZ" The email is not public, here is a description of its structure: MIME-Version: 1.0 Content-Type: multipart/mixed; Content-Type: multipart/alternative Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Type: image/pjpeg; name="XYZ" rpm -qi kontact Version : 4.9.4 Release : 1.1 Architecture: x86_64 Signature : DSA/SHA1, Sa 01 Dez 2012 12:01:24 CET, Key ID 27c070176f88bb2f Source RPM : kdepim4-4.9.4-1.1.src.rpm Build Date : Sa 01 Dez 2012 11:53:12 CET Vendor : obs://build.opensuse.org/KDE Reproducible: Always I go to major, because if this action is used, the contents of the email is lost and cannot be recovered.
Created attachment 76044 [details] Test email1 showing the problem Import test email1 from the mbox, click once on the email to see the body message, click somewhere else, now show the email use the context menu on the image and "remove attachment" action. Confirm the question and see that the content of the email is gone instead.
I confirm it.
Conforming the problem is still there with Source RPM : kdepim4-4.14.1-1.2.src.rpm Distribution: KDE:Current / openSUSE_13.1 Architecture: x86_64 Upgrading importance to HI and severity to grave as this is loss of data and the email really is gone.
If it cannot be fixed the function for deleting an attachment should be disabled temporarily to prevent data loss.
It seems bug 333150 is a duplicate of this. Please mark it as such and have a look at the comments there, as I analyzed the problem and found it seems to occur only with a specific MIME structure. This should be easy to fix and should be a priority, as it leads to data loss.
Git commit e9b653b1389bd7afc38b0e7effa5c511264a002f by Montel Laurent. Committed on 14/02/2015 at 13:17. Pushed by mlaurent into branch 'KDE/4.14'. Fix Bug 312276 - removing (deleting) an attachment loses the email contents as well for some mails FIXED-IN: 4.14.6 Related: bug 333150 It needs kdepim too M +52 -28 kmime/kmime_content.cpp M +2 -0 kmime/kmime_content.h http://commits.kde.org/kdepimlibs/e9b653b1389bd7afc38b0e7effa5c511264a002f
*** Bug 321063 has been marked as a duplicate of this bug. ***