I'm trying to populate an Excel sheet with data from a daily email, I've managed to get some data where I want it, but there's a table in the email (lists number of emails received each hour of the day) which I can't seem to get right. I'm running the email through the HTML to text function first and it gives me the output below (the text in bold is what I'm trying to capture) :
From: X@X.com <X@X.com>
Sent: 12 April 2022 00:10
To: X <X@X.com>
Subject: Report of mails processed to 11-Apr-2022 (qty: 56,184)
Version = 9.2.4
Severity = Informational
Type = Report
Host = X
License = X
Date = Tue Apr 12 00:10:00 BST 2022
Description:
Daily summary for company: X
Total at 10-Apr-2022: 123,405,272
Total at 11-Apr-2022: 123,461,456
Search Usage
Basic User Searches: 0
Priv User Searches: 0
LDAP User Searches: 81
Hour
Processed
00
93
01
106
02
117
03
86
04
160
05
260
06
1370
07
10135
08
11559
09
2970
10
6268
11
3420
12
2303
13
2396
14
4214
15
2884
16
3396
17
1469
18
1024
19
576
20
455
21
450
22
298
23
175
--------------------------------------------------------------------------------
Total
56184
Total Processed:
56,184
Volume Processed:
6.89 GB
Unique local mailbox references
Senders:
389
Recipients:
636
Active Users:
363
Processed Mail Breakdown
Inbound:
15,576
Outbound:
27,240
Internal:
12,303
Out&Internal:
1,063
Unknown:
2
I think my problem is the headers for the data may appear several times before the data I need (this will be different for each email depending on dates), the one good thing is the output I need is always on the same line of the HTML to Text output, but I can't work out how to reference this.
TIA

Report
All responses (
Answers (