Bug 393417

Summary: Some mails don't have the "has attachment" flag
Product: [Applications] kmail2 Reporter: Albert Astals Cid <aacid>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bingmybong, bugs.kde.org, dschridde+kde
Priority: NOR    
Version: 5.8.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=387423
Latest Commit: Version Fixed In:

Description Albert Astals Cid 2018-04-23 09:29:36 UTC
I have a few emails that have attachments in the form of

Content-Disposition: inline;
filename=BusinessCardSheet2nd-edition1.pdf
Content-Type: application/pdf;
x-unix-mode=0644;
name="BusinessCardSheet2nd-edition1.pdf"
Content-Transfer-Encoding: base64 

And they don't have the "have attachment" flag set, meaning that when i change the filter to show only emails with attachments they do not show up.
Comment 1 BingMyBong 2018-12-21 15:47:05 UTC
I can confirm this too but it might only be limited to email sent from Apple software.
 
 opensuse:tumbleweed:20181218
Qt: 5.12.0 KDE Frameworks: 5.52.0 - KDE Plasma:  5.14.4 - kwin 5.14.4
kmail2 5.9.3 - akonadiserver 5.9.3 - Kernel:  4.19.7-1-default
Comment 2 BingMyBong 2018-12-22 12:23:32 UTC
(In reply to BingMyBong from comment #1)
> I can confirm this too but it might only be limited to email sent from Apple
> software.

if you hit ctrl-alt-d, it shows the structure with all the correct attachments

>  opensuse:tumbleweed:20181218
> Qt: 5.12.0 KDE Frameworks: 5.52.0 - KDE Plasma:  5.14.4 - kwin 5.14.4
> kmail2 5.9.3 - akonadiserver 5.9.3 - Kernel:  4.19.7-1-default
Comment 3 Erik Quaeghebeur 2018-12-22 21:00:56 UTC
(In reply to Albert Astals Cid from comment #0)
> I have a few emails that have attachments in the form of
> 
> Content-Disposition: inline;
> filename=BusinessCardSheet2nd-edition1.pdf
> Content-Type: application/pdf;
> x-unix-mode=0644;
> name="BusinessCardSheet2nd-edition1.pdf"
> Content-Transfer-Encoding: base64 
> 
> And they don't have the "have attachment" flag set, meaning that when i
> change the filter to show only emails with attachments they do not show up.
This is most likely because of “Content-Disposition: inline”: this is not an attachment! The program that composed the mail is saying: “You should display this inline.” Of course for a pdf, this is going to be difficult (perhaps the Apple MUA can?) It is entirely like inline jpegs in html mail. But now, instead of a jpeg, there is a pdf. I guess it's entirely correct MIME.

My take is that kmail should treat inline MIME parts that it cannot display as attachments.

Could you save such a mail, remove any personal info from it, and attach it here?
If the developers get to this bug, that would be convenient.
Comment 4 Dennis Schridde 2021-01-25 18:21:41 UTC

*** This bug has been marked as a duplicate of bug 387423 ***