Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-09 Thread Tim Golden
venu madhav wrote: Hi all, How can I access the body of a mail in Outlook Inbox? I tried various options like message.Body or message.Mesg etc. but didn't work. I could get the subject of the mail using message.Subject though. If you haven't already, check out this page, which will get

Re: [python-win32] NT service and login prompt

2008-10-09 Thread Tim Golden
le dahut wrote: I've put a loop that wait for the service to be up with win32serviceutil.WaitForServiceStatus. Makes sense. Thanks for getting back. TJG ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-09 Thread Tim Roberts
venu madhav wrote: Hi all, How can I access the body of a mail in Outlook Inbox? I tried various options like message.Body or message.Mesg etc. but didn't work. I could get the subject of the mail using message.Subject though. Show us the code you used. There are several ways to get

[python-win32] Please help, run into a COM object issue using the windows media SDK, thanks!

2008-10-09 Thread jjpet
Hello all, I am trying to create an app. that talks to the Microsoft COM object called wmplayer.ocx, which comes with the windows media SDK. Everything seems to be working fine.. except that it only works when I run it within PythonWin :) What happened when I drove the script from the

Re: [python-win32] Please help, run into a COM object issue using the windows media SDK, thanks!

2008-10-09 Thread Mark Hammond
Has anybody run into similiar problems before? Working with a COM object that only works properly within PythonWin? Any way to run the script from the command line or any other method without relying on the PythonWin GUI while having the same effect as running it within PythonWin? This will

Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-09 Thread venu madhav
Here is the code: rom win32com.client import Dispatch session = Dispatch(MAPI.session) session.Logon('outlook') # MAPI profile name inbox = session.Inbox for i in range(inbox.Messages.Count): message = inbox.Messages.Item(i + 1) f.write(message.Subject+\n\n)