I'm trying to automate a job that is done everyday where someone checks multiple emails that is sent by various inhouse programs/scripts that people wrote. The person doing the checking has to see if there is an email from each source and if it's missing or says error in both cases something is wrong. Otherwise if email is there and doesn't say error then it's good.
I'm trying to wrap my head around how to automate this. I was thinking of checking all the emails with one program and send a aggregate email however since the emails are expected at different times I would still need to send 2-3 of these aggregate email for a person to manual review. I can also make some sort of web app interface that shows the status of each email. Both of these methods can also fail if connection to the email server fails or something.
Is there a better way to automate checking all these emails and also take into account different errors that can happen like not being able to connect to email server etc? This wouldn't be a problem with a person doing it since they would know right away that they can't get into the email.
Details 2 emails has deadline to check at time 1 3 emails has deadline to check at time 2 8 emails has deadline to check at time 3
If an email is missing or contains the "error" word, send appropriate email to correct person to notify.