[Tutor] Python Examples of processing MS Outlook

Hansen, Mike Mike.Hansen at atmel.com
Wed Apr 21 00:11:33 CEST 2010


 

> -----Original Message-----
> From: tutor-bounces+mike.hansen=atmel.com at python.org 
> [mailto:tutor-bounces+mike.hansen=atmel.com at python.org] On 
> Behalf Of Peter Meagher
> Sent: Friday, April 16, 2010 3:13 AM
> To: tutor at python.org
> Subject: [Tutor] Python Examples of processing MS Outlook
> 
> Greetings,
> 
>  
> 
> I'm doing a lot of email processing at the moment.  I put 
> together some basic code from within Outlook to open my 
> default inbox, filter email records based on text in the 
> Subject field, then parse the body, finally send the output 
> to a text file.  This is simple stuff but very useful.
> 
>  
> 
> I need to do more, however as a newbie with Python, I figured 
> I could both learn and produce at the same time.
> 
>  
> 
> Does anyone have references to simple MS Outlook 2007 
> processing code that I could vulture for my purposes?  (The 
> code that I adapted was from an old Office 2000 vba text, so 
> the version 2007 may not be that essential to my purposes)
> 
>  
> 
> After much searching, I found a reference to PyWebmail, 
> however it communicates directly to the webmail accounts, is 
> much more than I really need and I want to stay in the 
> Outlook environment for a number of reasons, particularly its 
> interface to Access.
> 
>  
> 
> Thank you.
> 
> Peter Meagher
> 
> 

You probably need to look at Python COM. Another problem with Outlook is that it has some security that prevents other programs from controlling it in response to various virus attacks. I think there's a way around it.

Mike


More information about the Tutor mailing list