Issue Shell Command on Certain New Mail Arrival

I am brand new to Lotus. I searched on the FAQs on notes.net and also spent time on this forum but no real soultion.

I want this to work on a client side (as shell command I want to issue sits on my hard drive)

I have certain emails generated when my routine processing of data querying (non lotus) done.

Following is done in non-lotus application:

I run bunch of sql queries and when queries complete it sends email to my notes with a specific subject based on the results.

I need to issue bunch of shell commands (I have a batch *.BAT file that I run manually now) based on subject of the email.

I created an agent that runs the batch file using shell command. The agent is set up currently in “Actions” menu option.

Since I am so new to notes, I can not figure out to run the agent whenever new emails comes in my mailbox on my client.

Also when I start my client, it may need to search all unread mails to see if this email was received.

Once again bottom line: On a client side, how do I set up rule/triiger to run an agent whenever email is receieved with certain subject line.

Thanks a lot.