Bug: The content of some emails is sometimes (partially or not) hidden, but present in the source
Status: UNCONFIRMED
Priority: --
Created: 2024-10-18 14:47:43+00:00
Resolved: 2024-12-10 16:48:53+00:00

Steps to reproduce:

Open a message (bug is both in the 3-bane window and in the standalone message window)


Actual results:

For some rare messages (but it has been the second email in a few days), the email looks empty (or sometimes only the header appears if it has been forwarded), but pressing Ctrl+U reveals in the source that the content is still present. One faulty email looks like:
```
Return-Path: <my expediter email>
Received: from zm-mta4.u-ga.fr (LHLO zm-mta4.u-ga.fr) (some ip) by
 zm-mbx9.u-ga.fr with LMTP; Thu, 10 Oct 2024 09:54:38 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by zm-mta4.u-ga.fr (Postfix) with ESMTP id 9790E1607D3
	for <my email>; Thu, 10 Oct 2024 09:54:38 +0200 (CEST)
X-Spam-Flag: NO
X-Spam-Score: -1.111
X-Spam-Level:
X-Spam-Status: No, score=-1.111 required=7 tests=[BAYES_00=-1.5,
 KHOP_HELO_FCRDNS=0.399, T_SCC_BODY_TEXT_LINE=-0.01]
 autolearn=no autolearn_force=no
Authentication-Results: zm-mta4.u-ga.fr (amavis); dkim=pass (1024-bit key)
 header.d=inria.fr
Received: from zm-mta4.u-ga.fr ([127.0.0.1])
 by localhost (zm-mta4.u-ga.fr [127.0.0.1]) (amavis, port 10024) with ESMTP
 id r0HVBYWY2AW5 for <my email>;
 Thu, 10 Oct 2024 09:54:38 +0200 (CEST)
Received: from mailhub.u-ga.fr (mailhub-2.u-ga.fr [129.88.178.102])
	by zm-mta4.u-ga.fr (Postfix) with ESMTP id 6AD88160837
	for <my email>; Thu, 10 Oct 2024 09:54:32 +0200 (CEST)
Received: from smtp-in3.u-ga.fr (smtp-in3.u-ga.fr [195.83.24.66])
	by mailhub.u-ga.fr (Postfix) with ESMTP id 67BD9100071
	for <my email>; Thu, 10 Oct 2024 09:54:32 +0200 (CEST)
Received: from mxb1-1.relay.renater.fr (mxb1-1.relay.renater.fr [194.214.201.8])
	by smtp-in3.u-ga.fr (Postfix) with ESMTP id 5EB2E400A6
	for <my email>; Thu, 10 Oct 2024 09:54:32 +0200 (CEST)
Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [some ip])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by mxb1-1.relay.renater.fr (asm) with ESMTPS id 2C1AB803B7
	for <my email>; Thu, 10 Oct 2024 09:54:32 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
  d=inria.fr; s=dc;
  h=from:content-transfer-encoding:mime-version:subject:
   message-id:date:to;
  bh=some string;
  b=some strings;
Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=emailof@mycorrespondent dmarc=fail (p=none dis=none) d=inria.fr
X-IronPort-AV: E=Sophos;i="6.11,192,1725314400"; 
   d="p7s'346?scan'346,208,346";a="188005399"
Received: from email correspondent (HELO smtpclient.apple) ([ip address])
  by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2024 09:54:32 +0200
From: email of my correspondent
Content-Type: multipart/signed;
	boundary="Apple-Mail=_097E5695-9669-40A7-8FDB-1B0A850723CA";
	protocol="application/pkcs7-signature";
	micalg=sha-256
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
Subject: Welcome
Message-Id: <some ID>
Date: Thu, 10 Oct 2024 09:54:21 +0200
To: my email
X-Mailer: Apple Mail (some ip)
X-Original-Source-IP: some ip
X-Renater-SpamState: 0
X-Renater-SpamScore: 0
X-Renater-SpamCause: long random looking string
X-Renater-ServerName: mxb1-1.relay.renater.fr
X-Bizanga: IMP - mxb1-1.relay.renater.fr


--Apple-Mail=some numbers
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Salut L=C3=A9o,

Here is a message, but even the first line is not shown.

--Apple-Mail=some numbers
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

long utf-8 encoded string
--Apple-Mail=_some numbers--

```

Another buggy email:
```
Some email headers
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary=----7S5SDPOY9K0SS1Y0MW9079NZUP3BT0
Content-Transfer-Encoding: 7bit
X-Greylist: Whitelist-UGA SMTP Authentifie (some email) via smtps-465 ACL (41)

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




-------- Courriel d=E2=80=99origine --------
De=C2=A0: "Cl=C3=A9ment Pernet" <clement=2Epernet@univ-grenoble-alpes=2Efr=
>
Envoy=C3=A9=C2=A0: 15 octobre 2024 14:04:39 GMT+02:00
=C3=80=C2=A0: "ljk-casc@univ-grenoble-alpes=2Efr" <ljk-casc@univ-grenoble-=
alpes=2Efr>
Objet=C2=A0: [ljk-casc] Fwd: Fwd: Stage de 3e -> stage BTS

Bonjour =C3=A0 tous,

In this email, everything after "Object" is hidden.

```


Expected results:

Message should be visible.