The reality is that unless you have Admin rights on the Server you're not going to be able to automate this.

You would need to have the rights to read all mail logs (a normal non-admin user won't have that right on Windows or Linux hosting)

For those that own or have admin rights then yes it could be scripted to an automated routine. A lot of scripting work, but could be done.