Modifying to Send Email on Email Recieved
I need Zimbra to detect an incoming email and run some code. I'm new to Zimbra and am still learning how it all fits together, but from what I can tell there are a few ways to go about this.
1. Does Zimbra already run a script when an email is received? If so I could just add a few lines.
2. Does Zimbra log incoming email? If so I could check that every so often and see what new emails have come in.
3. Could create a scheduled job to query the database for new emails since last check.
Any ideas on where to go with this?
Some boring specifics: The people in the office don't check their work emails enough and are missing important stuff. My job is to send a notification email to their personal email address when they get new mail