FW:Reading new mail from outlook express using Python

Grant Edwards grante at visi.com
Mon Mar 24 18:11:40 EDT 2008


On 2008-03-24, SPJ <mail2spj at yahoo.com> wrote:

> I am trying to create new tickets in the ticketing system
> using python. When I receive new email from a particular
> address, I have to trigger the python script and parse the
> mail in required format. 
>
> The main hurdle here is, how to invoke the script on arrival
> of new mail? I checked the outlook settings and found that it
> supports only microsoft VB script and Jscript. Is there any
> other way? I mean, if I make a daemon, how will it be notified
> of new mail? Is there any python module that does this? 
>
> I am not sure if this is the right place to ask this, since it
> is also a microsoft related question. But any help is
> appreciated.

You can use Outlook's COM interface from Python.  That allows
you to read messages from a mailbox.  I don't know of any way
to get "notified", but you can use the COM interface to poll
the mailbox(es) periodically.

-- 
Grant



More information about the Python-list mailing list