[python-win32] Windows service using py2exe

2012-05-14 Thread Antony Joseph
Hi all, I converted my python project to a service. When using the usual options of install and start/stop, everything works correctly. When I compile the project using py2exe, >test.exe install Installing service test >test.exe start Starting service test - But it not actually get started Wh

[python-win32] How to get Outlook headers

2010-03-02 Thread Antony Joseph
Dear all, I am trying to read the Message date from Outlook, I get the message date easily by using "PR_TRANSPORT_MESSAGE_HEADERS" only for the emails sent over the Internet. If the email was sent internally using exchange the mail headers are not exist on this "PR_TRANSPORT_MESSAGE_HEADERS". H

[python-win32] Hide the console as soon as the script starts.

2008-05-12 Thread Antony Joseph
Hi , I am trying to hide the console as soon as the script starts and display console window to System Tray . Could someone point me to any links. Thanks Antony ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailm

[python-win32] working Directory get changed-mapi.MAPIInitialize(None)

2008-04-19 Thread Antony Joseph
hi, 1. mapi.MAPIInitialize(None) changed the working directory to "C:\Program Files\Common Files\SYSTEM\MSMAPI\1033". is there anyway to initialize the MAPI which should not change the current working directory. Thanks Antony ___ python-win32 mailing

[python-win32] Problem in reading MS Outlook mails.

2008-04-04 Thread Antony Joseph
Hi, I am having problems while i read the mails from Ms Outlook. My code: self.session = win32com.client.Dispatch("Mapi.Session") self.session.Logon("Outlook") Error: 1.(-2147467259, 'Unspecified error', None, None). 2.A MS Outlook pop up a message that: "Either there is

[python-win32] how to set outlook/thunderbird as default e-mail client .

2008-02-18 Thread Antony Joseph
hi How to set outlook or Thunderbird as a default e-mail client in windows. Any help.pls Thanks ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] How to access the Outlook Express

2008-01-24 Thread Antony Joseph
Hi, I can access and read mails from Ms Outlook --- outlook = win32com.client.Dispatch("Outlook.Application") ... can any one tell me , How can access and read mails from Outlook Express --- outlook Express=win32com.client.Dispatch(.

[python-win32] Export emails from msoutlook to my local directory

2008-01-23 Thread Antony Joseph
1.Export emails from msoutlook to my local directory The problem i am facing is that the embedded images are getting as attachments Any body help me to solve this problem. Antony ___ python-win32 mailing list python-win32@python.org http://mail.python

[python-win32] pywintypes Error

2008-01-08 Thread Antony Joseph
Hi, Can anyone help me , what the problem ? I am running this code in windows xp and outlook also installed in my machine. >>> from win32com.client import Dispatch >>> s=Dispatch('Mapi.Session') Traceback (most recent call last): File "", line 1, in File "C:\Python25\Lib\site-packages\win32c

[python-win32] How to set content-type in Headers

2008-01-07 Thread Antony Joseph
hi, I am reading and writing mails from outlook , I want to know how to set the content-type for my Headers. For example, I want set : content-transfer-encoding: 7bit content-type: text/plain; charset=iso-8859-1; format=flowed for subject content-transfer-encoding: 7bit content-type: text/htm

[python-win32] get embedded images from outlook

2008-01-07 Thread Antony Joseph
Hi , This code can read the content of mails body , html and headers from outlook. in case , it there's an embedded image, Its not getting the image, My code... def GetPropFromStream(mapi_object,prop_id): try: stream = mapi_object.OpenProperty(prop_id,

[python-win32] Access Outlook mails remotely using win32com

2008-01-06 Thread Antony Joseph
Hi all. I want know is it possible to access the outlook remotely ? if its possible , pls tell me how can i do this? any links , .. Antony ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-wi

[python-win32] how can get the attachments(exclude) in the email

2008-01-04 Thread Antony Joseph
hi How can i get the attachments in the mail from outlook.? how can i make query for that? pls anybody help me > Thanks antony ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] How to save the mails as it is in their own format

2007-12-28 Thread Antony Joseph
Hi all, 1. I am working on a project , which i want to access the Microsoft outlook inbox, and get the mails and save it locally as it is. 2. This works to read the mails from Micrsoft outlook but its fails to get the mails from the outlook Express,. I run this code in windows machine , in that m

[python-win32] How to get mails from Exchange Server

2007-12-27 Thread Antony Joseph
hi all, I can read my mails locally from my outlook, I want to read my mail directly from Exchange server , How can i do that? Any Help/link will be usefull to me . my code import win32com.client session = win32com.client.Dispatch("MAPI.Session") session.Logon() inbox = session.Inbox collmsg =

Re: [python-win32] python-win32 Digest, Vol 57, Issue 22

2007-12-24 Thread Antony Joseph
reach the person managing the list at >[EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of python-win32 digest..." > > > Today's Topics: > > 1. how to get mails from Outlook (A

[python-win32] Operational errorr :

2007-12-21 Thread Antony Joseph
I am getting Operational Error : when i try get my contacts . My code : import win32com.client oOutlook = win32com.client.gencache.EnsureDispatch("Outlook.Application") onMAPI = oOutlook.GetNamespace("MAPI") ofContacts = onMAPI.GetDefaultFolder(10) # 10=outlook contacts folder redemption = oOutloo

[python-win32] how to get mails from Outlook

2007-12-20 Thread Antony Joseph
hi, I am trying to read all the mails in the Inbox from outlook and convert those mails into text format in my local path. Is there any tutorials or any links that can be usefull to me. Thanks ___ python-win32 mailing list python-win32@python.org http: