I am looking to make a Python script that runs on whenever an email is received. In Windows Task Scheduler, I can set up a trigger for "On an event", using the Application log and "Outlook" as the source. However, I do not know what the Event ID for a new incoming email is. I've been Googling around for a while and haven't found anything likely because I don't know the correct search terms. Perhaps someone here knows where to look, or better yet, the answer directly?
Not sure if it matters, but I'm running Windows 7, 64-bit with Outlook 2010. Thanks in advance
EDIT: I'm assuming that there is one single event ID that is generated when an email is recieved. That ID (or where to find it) is what I'm looking for. If this is not the case, and there is no single ID which corresponds to an incoming email, then any work around y'all can think of would be great
EDIT: To avoid the XY problem, the goal here is to figure out a way to have a python script run upon receiving an e-mail..
Another, hopefully better, Edit: There are two main things I'm trying to do:
I have a Python script which handles a form which my entire office uses (~30 people). This form sends emails to various people around the office. It would be nice if it didn't just blindly send emails into the ether, but rather received feedback. Things such as acknowledgement that the email was properly sent, and then read. This is goal 1.
Goal 2 is a bit more simple. Thanks to the wonderful regulations in my industry, we have to keep an insane amount of records for certain projects. This includes emails. So I would like to set up a list of clients/projects which need this treatment, so that when such emails are received, they can automatically be stored (probably as a pdf) or printed.
Hopefully this helps