When sending an PGP/MIME signed (and optionally also encrypted) mail, including signed attachments, KMail puts every attachment twice into the mail. This double's the size of the mail! Example mail body, created by KMail. You'll see, that the (very small) file "blue-pixel.png" has become attached twice. But I attached it only once to the mail. ======================================== MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1782944.DN5yU133gh"; micalg="pgp-sha1"; protocol="application/pgp-signature" User-Agent: KMail --nextPart1782944.DN5yU133gh Content-Type: multipart/mixed; boundary="nextPart4748887.diooyAto5j" Content-Transfer-Encoding: quoted-printable This is a multi-part message in MIME format. =2D-nextPart4748887.diooyAto5j Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Small test mail. =2D-nextPart4748887.diooyAto5j Content-Disposition: attachment; filename="blue-pixel.png" Content-Transfer-Encoding: base64 Content-Type: image/png; name="blue-pixel.png" iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAABmJLR0QA/wD/AP+gvaeTAAAACXBI WXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH3gsDDREaJ+YAOQAAAB1pVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIEdJTVBkLmUHAAAADUlEQVQI12NgyDj2HwADyAIu6/Hk0wAAAABJRU5ErkJggg== =2D-nextPart4748887.diooyAto5j-- This is a multi-part message in MIME format. --nextPart4748887.diooyAto5j Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Small test mail. --nextPart4748887.diooyAto5j Content-Disposition: attachment; filename="blue-pixel.png" Content-Transfer-Encoding: base64 Content-Type: image/png; name="blue-pixel.png" iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAABmJLR0QA/wD/AP+gvaeTAAAACXBI WXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH3gsDDREaJ+YAOQAAAB1pVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIEdJTVBkLmUHAAAADUlEQVQI12NgyDj2HwADyAIu6/Hk0wAAAABJRU5ErkJggg== --nextPart4748887.diooyAto5j-- --nextPart1782944.DN5yU133gh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) ...%signature data%... -----END PGP SIGNATURE----- --nextPart1782944.DN5yU133gh-- ======================================== Reproducible: Always
First test was with KDE 4.11.5 (openSUSE 13.1 with latest distribution updates) Now repeated the test with KDE 4.14.2 (openSUSE 13.2) Same bug in both versions!
Still there in 4.14.3
Created attachment 93289 [details] test mail (mbox file) This is a very small email for demonstration purposes. The attachments are two one-line plain/text files.
I confirm this for 4.14.8 But not only are the attachments added twice to the mail but the mail body, too. Of course, due to the typical size relation this is not obvious.
Confirming what Hauke reported. Mail body is also added twice and bug still exists in 4.14.8.
I confirm this bug (using 4.13.3) for big attachments this is a real problem
Confirming this severe bug still exists in KMail 4.14.10.
Looks like this got fixed in KMail 5.1.3 but the fix wasn't backported to 4.x. At least for me the bug is gone since updating to KMail 5.1.3 and it returns when downgrading to 4.14.10. (all software used from openSUSE 42.1) Can someone confirm? If yes, feel free to set status "RESOLVED".