Link to home
Start Free TrialLog in
Avatar of mwhitworth
mwhitworthFlag for Ireland

asked on

Mailbox Event Script

I am wondering if I can set a script to run when an email arrives in a certain mailbox in exchange.  

I want to implement this in a few applications, the main one being a mailing list system that adds users to a database when an email arrives with ADD in the subject.  

Is this possible with Exchange?  I am quite good with ASP, and am hoping I can trigger an ASP script to run, which would be quite easy to implement, as long as I could have the intital event trigger.

Is this possible?  Would it be easy to implement?  Will I have to break down and write a DLL and install it as an addon?

-M



ASKER CERTIFIED SOLUTION
Avatar of rjcpjc
rjcpjc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A few things to note, in order to successfully run the script, the mailbox to which the script is associated needs to have Author rights to the EVENTCONFIG_ServerName folder in Exchange Admin.

Goto Site_Name>Folders>System Folders>Events Root and look at the properties for the EventConfig_ServerName folder and click the client permissions button.  Add the user and grant them Author permissions.

In the Outlook client, goto Tools>Options and the Other Tab and click on the Advanced Options button.  Choose the add-in manager and make sure that Server Scripting is selected.  Once this is selected, look at the properties for the user's inbox and you will see an Agents tab.  Select this to see the dialog where you setup the scripts.
Avatar of mwhitworth

ASKER

I found some nice samples that let me do exactly what I wanted to do.  However, I have run into one problem - a ping/pong effect.  If you have any ideas about this, let me know.  Bascially, the script checks for auto-replys as well as previous subject headers to stop mail from ping-ponging back and forth between another recipent using an autoreply script.  However, Novell Groupwise, and some older UNIX systems change the subject as well as do not include auto flags in the message.  I had one mail go back and forth 47,000 times before I realized what was happening and killed it.  Kinda funny, but is there anything I can do on my end?   I personally think its the recipents problem in this case for using outdated mail software, but it still causes issues on my end as well.

-M