Parsing an email

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
User avatar
britesc
Posts: 40
Joined: Fri Sep 12, 2014 5:56 am
Location: Spain
ZCS/ZD Version: 8.8.15

Parsing an email

Postby britesc » Mon Jun 03, 2019 3:27 pm

Hi,
I receive an email from pfSense every time the internet service drops or starts again.
I have a dreadful ISP / Service not helped as it is a WiMax service affected by everything.

The email tells me the date and time the service comes back up or goes offline via a line in the email, with the up or down status and other bits of info.
The email also contains a line saying how many data lines the message contains.

I would like to automatically parse this email and save the details in a .csv file.
I also need to be able to initially run the script over 4 months worth of saved emails.

Is it possible to do such a thing?
If so where should I look for a guide or howto, to help me get stated.
I would prefer the script to be in bash, php etc.

Thanks and kind regards for any advice etc.

jB 8-)


Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 16 guests