Reading new mail from outlook using Python
SPJ
mail2spj at yahoo.com
Tue Mar 25 11:28:06 EDT 2008
Thanks...
I could access the folders in outlook express using the COM interface. Now I am stuck with how to read to a file only new mails.
Anyone knows how to achieve this?
Thanks
SPJ
--- On Tue, 3/25/08, Pete Stapley <pstapley at howaboutnow.net> wrote:
> From: Pete Stapley <pstapley at howaboutnow.net>
> Subject: Re: Reading new mail from outlook using Python
> To: mail2spj at yahoo.com
> Cc: python-list at python.org
> Date: Tuesday, March 25, 2008, 2:58 AM
> Well on a FreeBSD/Unix system you can use the .forward to
> pipe the
> incoming mail for a user to a program. Below is the
> contents of my
> .forward that invokes procmail.
>
> "|/usr/local/bin/procmail -m
> /path/to/conf/.procmailrc"
>
> So I imagine you could do something like this in a
> .forward.
>
> "|/path/myprogram.py"
>
> SPJ wrote:
> > Hi,
> >
> > 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.
> >
> > Thanks,
> > SPJ
> >
> >
> >
> ------------------------------------------------------------------------
> > Be a better friend, newshound, and know-it-all with
> Yahoo! Mobile. Try
> > it now.
> >
> <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20>
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the Python-list
mailing list