PHP Classes

Unable to parse message with thread

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Unable to parse message with thread  >  (Un) Subscribe thread alerts  
Subject:Unable to parse message with thread
Summary:No text message decoded
Messages:4
Author:Paul Claridge
Date:2025-12-21 14:45:30
 

  1. Unable to parse message with thread   Reply   Report abuse  
Picture of Paul Claridge Paul Claridge - 2025-12-21 14:45:30
Hi Team

Given the following partial message:

--00000000000025b7270646762d9e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">again again again</div><br><div class=3D"gmail_quote gmail=
_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, 21 Dec 2025=
at 13:17, Paul Claridge &lt;<a href=3D"mailto:[email protected]">p=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail=
_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204=
,204);padding-left:1ex"><div dir=3D"ltr"><div>Ok here we go again again</di=
v><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On S=
un, 21 Dec 2025 at 13:14, Paul Claridge &lt;<a href=3D"mailto:paul.claridge=
[email protected]" target=3D"_blank">[email protected]</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">O=
K here we go again</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cla=
ss=3D"gmail_attr">On Fri, 19 Dec 2025 at 17:06, Good News BIG Team &lt;<a h=
ref=3D"mailto:[email protected]" target=3D"_blank">site-admin24@=
goodnewsbig.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex">Trust you are well?<br><br>Please include the following refe=
rence: GNBC-1766164018-12 in the subject content of any reply.<br>If you do=
not do as requested we will never see your reply to this thread. Thanks.<b=
r><br><p><br>Regards, Good News BIG Team</p>
</blockquote></div>
</blockquote></div></div>
</blockquote></div>

--00000000000025b7270646762d9e--


I got debug code for $results as follows:

Array
(
[Type] => html
[Description] => HTML message
[Encoding] => utf-8
[DataFile] => /var/www/html/gnb/ci460/public/uploads/GooB9hh6/2
[Alternative] => Array
(
[0] => Array
(
[Type] => text
[Description] => Text message
[Encoding] => utf-8
[DataFile] => /var/www/html/gnb/ci460/public/uploads/GooB9hh6/1
)

)

[Subject] => Re: Making contact (GNBC-1766164018-12)
[Date] => Sun, 21 Dec 2025 13:20:25 +0000
[From] => Array
(
[0] => Array
(
[address] => [email protected]
[name] => Paul Claridge
)

)

[To] => Array
(
[0] => Array
(
[address] => [email protected]
[name] => Good News BIG Team
)

)

)

The contents of file part 1 are:

again again again

On Sun, 21 Dec 2025 at 13:17, Paul Claridge <[email protected]>
wrote:

> Ok here we go again again
>
> On Sun, 21 Dec 2025 at 13:14, Paul Claridge <[email protected]>
> wrote:
>
>> OK here we go again
>>
>> On Fri, 19 Dec 2025 at 17:06, Good News BIG Team <
>> [email protected]> wrote:
>>
>>> Trust you are well?
>>>
>>> Please include the following reference: GNBC-1766164018-12 in the
>>> subject content of any reply.
>>> If you do not do as requested we will never see your reply to this
>>> thread. Thanks.
>>>
>>>
>>> Regards, Good News BIG Team
>>>
>>

However file part 2 is NOT written and I cannot seem to extract the actual text message "again again again".

The reason we save the parts is so we can scan them for viruses.

Is this working as intended or do I have to fudge it somehow please?

Appreciate any feedback and/or suggestions
Thx Paul

  2. Re: Unable to parse message with thread   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2025-12-21 23:47:57 - In reply to message 1 from Paul Claridge
Hello Paulo,

Maybe that part is empty.

Can you provide an example EML file with a message that I can use to reproduce the problem, upload it somewhere like Google Drive and reply here with a link?

  3. Re: Unable to parse message with thread   Reply   Report abuse  
Picture of Paul Claridge Paul Claridge - 2025-12-22 14:03:08 - In reply to message 2 from Manuel Lemos
here is the complete message:

From [email protected] Sun Dec 21 13:20:39 2025
Received: from mail-yx1-f42.google.com (mail-yx1-f42.google.com [74.125.224.42])
by ikserver2.goodnewsbig.com (8.15.2/8.15.2/Debian-18) with ESMTP id 5BLDKcmG1641968
for <[email protected]>; Sun, 21 Dec 2025 13:20:39 GMT
Authentication-Results: ikserver2.goodnewsbig.com;
dkim=pass (2048-bit key; unprotected) header.d=gmail.com [email protected] header.a=rsa-sha256 header.s=20230601 header.b=LiVpqThI;
dkim-atps=neutral
Received: by mail-yx1-f42.google.com with SMTP id 956f58d0204a3-6420c08f886so4124069d50.3
for <[email protected]>; Sun, 21 Dec 2025 05:20:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1766323238; x=1766928038; darn=goodnewsbig.com;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=xr6sOuJYb2G0+FASjIIf5V6DGG0ajuQeK6sIAOBILL4=;
b=LiVpqThIlV2mBFhNYQ07QcPBNzHF8gBIlGas5j82xTNvxe/sKC9T2Atnd84M357dzP
yo1icRe8KtngdD+kx3GQCVdPq7EevWmTNCqofzoMx8Wfa3J3G5I2g8qx4wwX4f/2VLEZ
A2YC1Yn6RE701Re1gkdNikYRIIAJJpAlRo3j53VY1TaF3/Dfa3J0r4Aug/P4wNhq/hFm
QkrMLoIFoXg9qIS+Yt6fcoVb6wlfJ7fY65FijAuYN+2oQFgwuKB6zHmnKle+jaHPMyun
MNEpU25pHD8OFaW3wRxfx/I/gMD4BW/xqqnZbcNBBFboXRRatwdsKHjWeE/aR/g8Reao
kaOg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1766323238; x=1766928038;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=xr6sOuJYb2G0+FASjIIf5V6DGG0ajuQeK6sIAOBILL4=;
b=KO3jSzr8tzJ8OhgXtLK4lGOS/RSphUxWgeiZHRRylYIQdcXT5SoikDX31yz+qiuihF
XijAC7PCoTiOOF+/iK3fEx9pbNB1C5uKTuVxsVKwMmSprtc5iORX9AaxUk7hvkpmSavA
GjquO9Y+U6/qyWmxZNalSPXrxTTTPBB6xmWRQg0RJVKmWGbKfJnODkcj9U4KOttgbHvL
AuXJGqc1ZK28Hg5ht0Dy76LK0RJvprinip11tN4XwKrWV+N44l3f6K9E8hxqDCcXhpSS
67iVJTGZ5LDcOCEltq4hVebPFR72SAoBWMOHO4ZKChfmLfSDY0dXmjARIG/ReEXejaE1
mliw==
X-Gm-Message-State: AOJu0YxozHh6HEIH4KAHcfjUJFVl7mH3952zjjiekT5bIbQswgK8kaQ2
WPSxTI0G7L8ogPJtJrDqLl19mpTP9v7FhwBw+zU/bRtJJJ1Ps86+1y8LqsMpwsL8G5rvhIiMIU0
xUb2bIRI3g+eE0HUcOumT7uz10i4wNH/f3A==
X-Gm-Gg: AY/fxX6VHXA+zTWFkBEx4RYDqFH7bnBsSRnQ1kmDcEDPKlE46yK2/KQhIwoEXOwo60Y
DJRhH9OqGEuhx2tNjHHPO20QdlphnYC2QRhe1aX2zWU/lQfVIj3bH28ATQ8IR3gVGQw9QUlFOdU
vADACSZ3tCO415OlPzRTsAJtKi84kYWuPIQixCOxJaNfSCAVX/Bqj7L1A08LKRfRPNbakOIvY0Q
SdbNnsgC5VWU37tPCCYO/E7PF82lYcfp3QqSvGhDIMggB+CIweZMNvg6NbVoDfX69J3csyUIILP
lKsBHt8aLIBFFxtUVOFwiPYcrA==
X-Google-Smtp-Source: AGHT+IHnFM9aQkbq1LXyLoMAJymRMXd0c8wzDJmPE6sikFCA9ikkqKvV5TNtd9oo87H5YdNC5DqdsB5Dn55vdqARjwg=
X-Received: by 2002:a53:ebc1:0:b0:63f:c487:17ab with SMTP id
956f58d0204a3-6466a8b4b90mr5101647d50.47.1766323237794; Sun, 21 Dec 2025
05:20:37 -0800 (PST)
MIME-Version: 1.0
References: <[email protected]> <CA+7+wVn3UEkA0Rb22SMVnnHFa8KixqnvPULKQkzyZ3D1iFN6Rg@mail.gmail.com>
<CA+7+wVnrVhQ4iDBR6xri-S3eAbJG4ymjmYyVN6VLbcmdGG2MoA@mail.gmail.com>
In-Reply-To: <CA+7+wVnrVhQ4iDBR6xri-S3eAbJG4ymjmYyVN6VLbcmdGG2MoA@mail.gmail.com>
From: Paul Claridge <[email protected]>
Date: Sun, 21 Dec 2025 13:20:25 +0000
X-Gm-Features: AQt7F2pRWUpTVX3gHchWjgt_2v1RQdo-DmuKh16wIlVZciednBd4kyYE7VyItmY
Message-ID: <CA+7+wVntki9ZRFwK_EH7zhO=Z4StBLNTJmav_-0ndo1LXzEfhQ@mail.gmail.com>
Subject: Re: Making contact (GNBC-1766164018-12)
To: Good News BIG Team <[email protected]>
Content-Type: multipart/alternative; boundary="00000000000025b7270646762d9e"
X-Virus-Scanned: clamav-milter 0.103.12 at ikserver2
X-Virus-Status: Clean

--00000000000025b7270646762d9e
Content-Type: text/plain; charset="UTF-8"

again again again

On Sun, 21 Dec 2025 at 13:17, Paul Claridge <[email protected]>
wrote:

> Ok here we go again again
>
> On Sun, 21 Dec 2025 at 13:14, Paul Claridge <[email protected]>
> wrote:
>
>> OK here we go again
>>
>> On Fri, 19 Dec 2025 at 17:06, Good News BIG Team <
>> [email protected]> wrote:
>>
>>> Trust you are well?
>>>
>>> Please include the following reference: GNBC-1766164018-12 in the
>>> subject content of any reply.
>>> If you do not do as requested we will never see your reply to this
>>> thread. Thanks.
>>>
>>>
>>> Regards, Good News BIG Team
>>>
>>

--00000000000025b7270646762d9e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">again again again</div><br><div class=3D"gmail_quote gmail=
_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, 21 Dec 2025=
at 13:17, Paul Claridge &lt;<a href=3D"mailto:[email protected]">p=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail=
_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204=
,204);padding-left:1ex"><div dir=3D"ltr"><div>Ok here we go again again</di=
v><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On S=
un, 21 Dec 2025 at 13:14, Paul Claridge &lt;<a href=3D"mailto:paul.claridge=
[email protected]" target=3D"_blank">[email protected]</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">O=
K here we go again</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cla=
ss=3D"gmail_attr">On Fri, 19 Dec 2025 at 17:06, Good News BIG Team &lt;<a h=
ref=3D"mailto:[email protected]" target=3D"_blank">site-admin24@=
goodnewsbig.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex">Trust you are well?<br><br>Please include the following refe=
rence: GNBC-1766164018-12 in the subject content of any reply.<br>If you do=
not do as requested we will never see your reply to this thread. Thanks.<b=
r><br><p><br>Regards, Good News BIG Team</p>
</blockquote></div>
</blockquote></div></div>
</blockquote></div>

--00000000000025b7270646762d9e--

  4. Re: Unable to parse message with thread   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2025-12-31 03:59:09 - In reply to message 3 from Paul Claridge
Hello Paul,

That sample message has the headers breaking and that makes the message be different from the original.

Can you send the original EML message attached to an email message to my email address?