Bug 476762 - Kmail does not show encapsulated message in received mail
Summary: Kmail does not show encapsulated message in received mail
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.24.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-09 16:40 UTC by Franck Routier (alci)
Modified: 2023-11-09 17:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Encapsulated message seems empty (22.95 KB, image/png)
2023-11-09 16:42 UTC, Franck Routier (alci)
Details
Seems empty, but contains base64 encoded message (532.94 KB, image/png)
2023-11-09 16:49 UTC, Franck Routier (alci)
Details
Faulty mail with encapsulated mail not showing (10.79 KB, application/mbox)
2023-11-09 17:19 UTC, Franck Routier (alci)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franck Routier (alci) 2023-11-09 16:40:48 UTC
SUMMARY
***
For some time (maybe after I changed mail provider), kmail does not show certain encapsulated messages.
Same encapsulated mail can be seen on eg K9mail on Android (or in Webmail).
***

WHAT HAPPENS:

Encapsulated message shows no from, no date, no content.
Opening encapsulated message is no better. Using the V keyword in this empty encapsulated message window shows the base64 code.

EXPECTED RESULT:
I should see the encapsulated message.

DETAILS:
Looking at the main message source, I see this structure:

 [Some header informations...]
Content-Type: multipart/mixed;
 boundary="_=_swift_1699451300_54c0e6e25c483d4a00e2d82bbf0aae60_=_"
[some more header here ...]

--_=_swift_1699451300_54c0e6e25c483d4a00e2d82bbf0aae60_=_
Content-Type: multipart/alternative;
 boundary="_=_swift_1699451300_ef16521f950d446f2fe191e04a841197_=_"

--_=_swift_1699451300_ef16521f950d446f2fe191e04a841197_=_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

[plain text message here ...]

--_=_swift_1699451300_ef16521f950d446f2fe191e04a841197_=_
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

[html message here ...]

--_=_swift_1699451300_ef16521f950d446f2fe191e04a841197_=_--

--_=_swift_1699451300_54c0e6e25c483d4a00e2d82bbf0aae60_=_
Content-Type: message/rfc822;
 name=confirmation-de-votre-commande-du-mercredi-8-novembre-2023.eml
Content-Transfer-Encoding: base64
X-WS-Attachment-UUID: 9fef11c7-3b6f-495c-a36f-95ee114544b3
Content-Disposition: attachment;
 filename=confirmation-de-votre-commande-du-mercredi-8-novembre-2023.eml

[base64 encoded string here ...]

--_=_swift_1699451300_54c0e6e25c483d4a00e2d82bbf0aae60_=_--


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 Franck Routier (alci) 2023-11-09 16:42:51 UTC
Created attachment 162984 [details]
Encapsulated message seems empty
Comment 2 Laurent Montel 2023-11-09 16:46:17 UTC
Hi,
As I read on your bug report it's a private message => you can't forward it even in my private email.
So It will be hard to debug it.
For understanding why this email is buggy we need email or a fake email (without private info)...

Embedded emails works in kmail but your email seems to be specific.
Comment 3 Franck Routier (alci) 2023-11-09 16:49:16 UTC
Created attachment 162985 [details]
Seems empty, but contains base64 encoded message
Comment 4 Franck Routier (alci) 2023-11-09 16:50:44 UTC
(In reply to Laurent Montel from comment #2)
> Hi,
> As I read on your bug report it's a private message => you can't forward it
> even in my private email.
> So It will be hard to debug it.
> For understanding why this email is buggy we need email or a fake email
> (without private info)...
> 
> Embedded emails works in kmail but your email seems to be specific.

I'll try to reproduce with fake data...
Comment 5 Franck Routier (alci) 2023-11-09 17:18:09 UTC
(In reply to Franck Routier (alci) from comment #4)
> (In reply to Laurent Montel from comment #2)
> > Hi,
> > As I read on your bug report it's a private message => you can't forward it
> > even in my private email.
> > So It will be hard to debug it.
> > For understanding why this email is buggy we need email or a fake email
> > (without private info)...
> > 
> > Embedded emails works in kmail but your email seems to be specific.
> 
> I'll try to reproduce with fake data...

Ok, reproduced: has to do with the way Infomaniak's webmail (called kmail ... :-( ) forwards mails when "forward as attachment" is set.
I'll attach a faulty mail.
Comment 6 Franck Routier (alci) 2023-11-09 17:19:53 UTC
Created attachment 162986 [details]
Faulty mail with encapsulated mail not showing