Hi @J_Z
We need the portion of the file located between two From
header lines in mbox format, such as:
From - Fri Feb 25 12:20:04 2011
(dates are just examples).
This section must contain the longest line with maxLength = 3180331038
that we previously identified.It can be located by refining the code above.
In a text editor, it looks approximately like this:
…
From - Fri Feb 25 12:20:04 2011
Received: from WIN-2BKCUEDGIIG ([127.0.0.1]) by agco.cataligent.net with Microsoft SMTPSVC(7.5.7600.16601);
Thu, 11 Nov 2010 07:19:28 -0600
MIME-Version: 1.0
From: noreply@agco.cataligent.net
To: info@cataligent.com
Reply-To: feedback@cataligent.com
Date: 11 Nov 2010 07:19:28 -0600
Subject: =?us-ascii?Q?Approval_request_for_=2C_A2_2010-11-09=2C_=2C_Beauvais=2C_?=
Content-Type: multipart/mixed;
boundary=“–_=_NextPart1_63c36585-9b28-4bc2-b856-448d05068dca”
Return-Path: noreply@agco.cataligent.net
Message-ID: WIN-2BKCUEDGIIGbC8w000005d5@agco.cataligent.net
X-OriginalArrivalTime: 11 Nov 2010 13:19:28.0744 (UTC) FILETIME=[11BCF680:01CB81A3]
----_=_NextPart1_63c36585-9b28-4bc2-b856-448d05068dca
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
<html=20style=3D’font-family:verdana;font-size:10=2E0pt’><meta=20http=
-equiv=3DContent-Type=20content=3D"text/html;=20charset=3Dwindows-1252"></h=
ead><body=20lang=3DDE=20link=3Dblue=20vlink=3Dpurple=20>
<p=20><span=20=
style=3D’font-size:10=2E0pt’>The=20approval=20process=20for=20project=20A2=
=202010-11-09=20has=20been=20started=2E=20Please=20view=20the=20attachment=
=20for=20further=20information=2E
<p=20><span=20=20style=3D’font-=
size:10=2E0pt;color:black;‘>Reviewer=20Decision:
<p=20><span=20st=
yle=3D’font-size:10=2E0pt’><a=20href=3D"mailto:49859300@agco=2Ecataligent=
=2Enet?subject=3DConditionally=20Approved:%20%5bRunning%20Stage:%202%5d%20C=
ER%20approval%20request%20for%20A2%202010-11-09,%20,%20&body=3DReviewer=
%20Comments:“>
Conditionally=20Approved<p=20><sp=
an=20style=3D’font-size:10=2E0pt’><a=20href=3D"mailto:49859300@agco=2Ecatal=
igent=2Enet?subject=3DApproved:%20%5bRunning%20Stage:%202%5d%20CER%20approv=
al%20request%20for%20A2%202010-11-09,%20,%20&body=3DReviewer%20Comments=
:”>
Approved<p=20><span=20style=3D’font-size:10=
=2E0pt’><a=20href=3D"mailto:49859300@agco=2Ecataligent=2Enet?subject=3DDeni=
ed:%20%5bRunning%20Stage:%202%5d%20CER%20approval%20request%20for%20A2%2020=
10-11-09,%20,%20&body=3DReviewer%20Comments:“>
Denied</=
span>
<p=20><span=20style=3D’font-size:10=2E0pt’><a=20href=3D"mailto:498=
59300@agco=2Ecataligent=2Enet?subject=3DClarification:%20%5bRunning%20Stage=
:%202%5d%20CER%20approval%20request%20for%20A2%202010-11-09,%20,%20&bod=
y=3DReviewer%20Comments:”>
Clarification=20needed</p=
----_=NextPart1_63c36585-9b28-4bc2-b856-448d05068dca
Content-Type: multipart/mixed; boundary="–=_NextPart2_83908fe7-7763-4961-b7f7-9f501eb2b1c7"
----_=_NextPart2_83908fe7-7763-4961-b7f7-9f501eb2b1c7
Content-Type: application/octet-stream; name=“Milestone Review.ppt”
Content-Transfer-Encoding: base64
0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAARAAAALggAAAAAAAAAEAAALAgAAAEAAAD+////AAAAAAAAAACAAAAAAAEAAIABA…content of line with maxLength…
----_=_NextPart2_83908fe7-7763-4961-b7f7-9f501eb2b1c7–
----_=_NextPart1_63c36585-9b28-4bc2-b856-448d05068dca–
From - Fri Feb 25 12:20:05 2011
X-Mozilla-Status: 0001
X-Mozilla-Status2: 10000000
X-Mozilla-Keys:
X-Real-To: test.network@ngs.ru
Return-Path: alexander.melnikov@aspose.com
Received: from [172.16.0.3] (HELO imx-fe.ngs.ru)
by mx8.intranet.ru (CommuniGate Pro SMTP 4.3.11)
with ESMTP id 126968249 for test.network@ngs.ru; Fri, 25 Feb 2011 11:48:45 +0600
…
…
…content of next message…