python as an Exchange 2000 script engine for a public folder

gbreed at cix.compulink.co.uk gbreed at cix.compulink.co.uk
Wed Jan 9 05:26:24 EST 2002


craig curtin wrote:

> i'm trying to get python running on an exchange 2000 server and
> have python script some public folders. most of the examples i've
> seen are for VBSCRIPT (Below is the template). there is no way
> that i want to use anything other than python.
> 
> i have python installed as an activeX script engine. i'm just having
> problems figuring out how to get Exchange 2000 to deliver events
> to my scripts.
> 
> any had any success with this? or pointers to FAQs/tutorial?

I've tried and failed.  I did find an example in JScript, and it's 
sufficiently different from the VBScript ones to make it very difficult to 
generalize.  I'm not even sure if it worked.

The best alternative I've found is to use CDO from a standalone Python 
script.  You can get it to run as a service, and poll for new messages.  I 
also found this more reliable then VBScript-on-Exchange, because you can 
wrap everything in an exception handler.  I found one error in an Exchange 
script would halt all scripts until it was dealt with.

I was using an older version of Exchange, I think 5.1.  Perhaps 
something's changed since then, but your experience suggests not.


                  Graham



More information about the Python-list mailing list