I actually need to look this up which RFC specifies this but apparently AppleMail sends out Mails with such MIME headers and Outlook seems to parse them natively but GpgOL ignores them.
I don't have the full example mails but I will try to obtain some, currently I only have a detailed log where this is visible.
--Apple-Mail=_81A3F461-7DD3-494B-AFB5-14F1940C7C45' Content-Disposition: inline; filename*=utf-8''Foo%C2%ADfoto%202023%2D07%2D10%20um%20xzy.png Content-Type: image/png; name*=utf-8''Foo%C2%ADfoto%202023%2D07%2D10%20um%20xyz.png; x-mac-hide-extension=yes; x-unix-mode=0644 Content-Transfer-Encoding: base64
And even weirder, this can go across multiple parameters with continuation parameters apparently.
--Apple-Mail=_209E8ECB-4492-4AC5-A0DD-6D82E8B59053' Content-Disposition: inline;' filename*0="Some long filename without any special characters but just a very"; long filename that is continued here"; filename*1=and then in a second parameter.pdf; Content-Type: application/pdf; name*0="Some long filename without any special characters but just a very"; long filename that is continued here"; name*1=and then in a second parameter.pdf; x-unix-mode=0644
To be honest I have never seen such a way to transfer parameters but KMime and our new MIMETreeparser in T6199 can probably handle them but our old and trusty RFC822parse code in GpgOL needs to be adjusted.
This later leads to:
07:41:40/14840/ERROR/mail.cpp:add_attachments_o: Ignoring attachment without display name. 07:41:40/14840/ERROR/mail.cpp:add_attachments_o: Ignoring attachment without display name.
Here I think we should change the error handling to just add it as "unknown_attachment.dat" in such a case so that users have a chance to recover the attachments at all.
Prio high, because this might be a new version of AppleMail and we are just starting to see this. And to users it looks like a crypto related "Data loss" issue.