We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Read EML to get Expanded Recipients details

Hi we have a requirement to read EML file and extract the metadata . We need all sender , recipients details.
In exchange we have enabled Expanded option so our eml file will have expanded list of recipients details.

So all we want to get is , if a group is present in recipients list we need to get the member details.
We can not use other option like graph api as eml files we get will from previous week and group can change .

So any parser that can give me expanded list from them eml will help.

Format of eml

loha-sender: sender@abc.com
loha-receiver: adgd94@advisormail.net;
loha-senderip:
loha-receiveddatetime: 02-11-2022 02:05:14 PM
loha-guid: 220-202202111414-fgh8-gvgnghg457587
Received: from abc.com ([141.162.101.30]) by archivecloud.net over TLS secured channel with Microsoft SMTPSVC(1.2.1212.12121);
Fri, 11 Feb 2022 14:05:14 -0800

Content-Type: multipart/mixed;
boundary=“cbcvbc-cbv-cvbcvb-cvbcbv-cfgbcfgvb_”
Subject: [Warning] ALARM
CC: groupabc group@abc.com
To: TechSupport-abc techsupport-abc@abc.com
From: “user, name” user.name@abc.com
Sender:
MicrosoftExchangedftyrtyrtyrtyryr@abc.onmicrosoft.com
Message-ID: dfgdfg-fdgdfg-dfgfdg-fdg-dfgdfg@journal.report.generator
Date: Fri, 11 Feb 2022 22:05:11 +0000
X-MS-PublicTrafficType: Email
Content-Transfer-Encoding: binary
X-MS-Journal-Report:
Return-Path: bctasks@abc.com
X-MS-Exchange-Parent-Message-Id: utjtyjyjghjghj@ghjghjhgj.ghjghj.prod.outlook.com
Auto-Submitted: auto-generated
X-MS-Exchange-Generated-Message-Source: Journal Agent
X-MS-TrafficTypeDiagnostic: ghjhgjghj:EE_JournalingReport
X-LD-Processed: ghjghjghjghjjjjjjjjjjjjjjj,ExtAddr
Keywords:
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthSource: ghjghjhg.ghjghj.jgh.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2022 22:05:11.4809
(UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: ghjghjghjghjgh
X-MS-Exchange-Transport-CrossTenantHeadersStamped: cbcvbcvb
X-OrganizationHeadersPreserved: cbcvbcvb.fgdfg.prod.outlook.com
X-CrossPremisesHeadersPromoted: cbcvbcvb.abc.com
X-CrossPremisesHeadersFiltered: cbcvbcvb.abc.com
X-OriginatorOrg: abcllp.onmicrosoft.com
X-OriginalArrivalTime: 11 Feb 2022 22:05:14.0779 (UTC) FILETIME=[726C66B0:01D81F93]
Content-Type: text/plain; charset=“us-ascii”
Content-Transfer-Encoding: 7bit

Sender: sdfdsf@abc.com
Subject: [Warning] test
Message-Id: <fgdfg.prod.outlook.com>
To: dfgdfg@abc.com, Expanded: group@abc.com
To: dfgdfgxcvxc@abc.com, Expanded: group@abc.com
To: dfgdfgfgf@abc.com, Expanded: group@abc.com

@vemuladivya

Please refer to the following article to achieve your requirement. Hope this helps you.
Extracting Message Contents from Emails