Bug 378985 - KMail 5.4.3: Save all attachements -> no attachments found
Summary: KMail 5.4.3: Save all attachements -> no attachments found
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 5.4.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 07:25 UTC by Axel Braun
Modified: 2022-10-14 07:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.21.40


Attachments
Error message (40.72 KB, image/png)
2017-04-20 07:25 UTC, Axel Braun
Details
Attachments with/without background color (12.64 KB, image/png)
2022-04-21 07:58 UTC, kasimir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Braun 2017-04-20 07:25:04 UTC
Created attachment 105107 [details]
Error message

Please have a look at the attached screenshot - the mail contains 3 attachments, but when I try to save them with 'save all attachments', an error message pops up that no attachments are found.
Comment 1 Laurent Montel 2017-06-14 12:00:05 UTC
Can we have a test case ?
Comment 2 Axel Braun 2017-06-14 13:04:50 UTC
I will send you a PM
Comment 3 Axel Braun 2022-02-22 16:07:15 UTC
Just noticed this is still an issue in KMail 5.19.2
Mail was sent from
X-Mailer: Apple Mail (2.3654.60.0.2.21)

KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Comment 4 kasimir 2022-04-21 07:57:37 UTC
I don't think this is a bug.

If you look closely, the listed attachments have a background color. But they don't always have that. I don't know what this signifies, perhaps someone from the KDE/KMail team can clarify? I suspect it has something to do with spam/security checks.

Anyway, 'Save Attachments' will only see the attachments that don't have a background color. I will try to attach a screenshot where you can see the difference. There are 6 attachments in this email, five of them PNG images, they have a background color (purple in my case). One is a PDF without a background. When I right click 'Save Attachments' it only saves the PDF.

I have another email containing multiple XLSX files. All of them have a background color. When I click 'Save Attachments', I get the message 'Found no attachments to save'.

So I think this works as intended (in the original screenshots the attachments also have backgrounds), only it's not clear to the user why no attachments are found.
Comment 5 kasimir 2022-04-21 07:58:41 UTC
Created attachment 148279 [details]
Attachments with/without background color
Comment 6 Axel Braun 2022-04-22 08:44:10 UTC
Not sure if I understand 'background color'. You mean the way it is presented in KMail? 
I have just received a bunch of mails again, no text, just pictures, and it does not find a single attachment to save!

....
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_1908714_145766611.1650574664227"
X-Comaas-Tenant: ek
X-Message-ID: a9817e00-c1b5-11ec-9087-2fdfe5a3956e
X-Conversation-ID: 1r28:85xdr6:2hfcm3vfx
Date: Thu, 21 Apr 2022 22:57:44 +0200 (CEST)
X-purgate-type: clean
X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de
X-purgate: This mail is considered clean (visit http://www.eleven.de for further information)
X-purgate: clean
X-purgate-size: 1259186
X-purgate-ID: 149169::1650574668-00000001-C477BE70/0/0

 
------=_Part_1908714_145766611.1650574664227
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Schmidt =C3=BCber eBay Kleinanzeigen replied to your ad :

   =20

------=_Part_1908714_145766611.1650574664227
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1">
</head>
<body vlink="#001e9b" alink="#001e9b" link="#001e9b" bgcolor="#ffffff">
        
</body>
</html>
------=_Part_1908714_145766611.1650574664227
Content-Type: image/jpeg; name=IMAGE_1650574648742_8441350525493933700.jpg
Content-Transfer-Encoding: base64
Content-Disposition: attachment; 
	filename=IMAGE_1650574648742_8441350525493933700.jpg

/9j/4QBqRXhpZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
.....
Comment 7 Axel Braun 2022-04-22 08:44:43 UTC
PS: Kmail 5.19.3
Comment 8 kasimir 2022-04-22 10:12:07 UTC
(In reply to Axel Braun from comment #6)
> Not sure if I understand 'background color'. You mean the way it is
> presented in KMail? 
> I have just received a bunch of mails again, no text, just pictures, and it
> does not find a single attachment to save!
> 
> ....
> MIME-Version: 1.0
> Content-Type: multipart/alternative; 
> 	boundary="----=_Part_1908714_145766611.1650574664227"
> X-Comaas-Tenant: ek
> X-Message-ID: a9817e00-c1b5-11ec-9087-2fdfe5a3956e
> X-Conversation-ID: 1r28:85xdr6:2hfcm3vfx
> Date: Thu, 21 Apr 2022 22:57:44 +0200 (CEST)
> X-purgate-type: clean
> X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de
> X-purgate: This mail is considered clean (visit http://www.eleven.de for
> further information)
> X-purgate: clean
> X-purgate-size: 1259186
> X-purgate-ID: 149169::1650574668-00000001-C477BE70/0/0
> 
>  
> ------=_Part_1908714_145766611.1650574664227
> Content-Type: text/plain; charset=utf-8
> Content-Transfer-Encoding: quoted-printable
> 
> Schmidt =C3=BCber eBay Kleinanzeigen replied to your ad :
> 
>    =20
> 
> ------=_Part_1908714_145766611.1650574664227
> Content-Type: text/html; charset=utf-8
> Content-Transfer-Encoding: 7bit
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
>     <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
>     <meta name="viewport" content="width=device-width,initial-scale=1,
> maximum-scale=1">
> </head>
> <body vlink="#001e9b" alink="#001e9b" link="#001e9b" bgcolor="#ffffff">
>         
> </body>
> </html>
> ------=_Part_1908714_145766611.1650574664227
> Content-Type: image/jpeg; name=IMAGE_1650574648742_8441350525493933700.jpg
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; 
> 	filename=IMAGE_1650574648742_8441350525493933700.jpg
> 
> /9j/4QBqRXhpZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> .....

Text background color for the attachments in the mail header. See the picture I attached.
Comment 9 Laurent Montel 2022-10-14 07:16:55 UTC
Git commit 4b045ec19f62dcd270d0af4e11af483eb160e414 by Laurent Montel.
Committed on 14/10/2022 at 07:15.
Pushed by mlaurent into branch 'release/22.08'.

Fix bug 378985: KMail 5.4.3: Save all attachements -> no attachments found
FIXED-IN: 5.21.40

M  +10   -9    src/kmime_content.cpp

https://invent.kde.org/pim/kmime/commit/4b045ec19f62dcd270d0af4e11af483eb160e414