[pywin32-bugs] [ pywin32-Bugs-1472941 ] Build 208 - MAPI COM property doesn't work
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2006-04-19 23:50:06
|
Bugs item #1472941, was opened at 2006-04-19 22:32 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1472941&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ludvig Strigeus (strigeus) Assigned to: Nobody/Anonymous (nobody) Summary: Build 208 - MAPI COM property doesn't work Initial Comment: I'm trying to change the subject of an email with the MAPI com interface to Outlook: from win32com.client import Dispatch s = Dispatch("Mapi.Session") s.Logon("Outlook") for folder in s.Inbox.Folders: if folder.Name == 'Test': for msg in folder.Messages: print "Changing subject of %s" % msg.Subject msg.Subject = 'Blabla' print "New subject = %s" % msg.Subject msg.Update() But the code does not work. The subject is not changed. It seems like msg.Subject = 'Blabla' has no effect. The same code logic works with Matlab or Visual Basic. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2006-04-20 09:50 Message: Logged In: YES user_id=14198 I'm afraid I don't have the time right now to look into this, but Python and MAPI have been working together well, by many different people for many years. Nothing jumps out at me from the code though... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1472941&group_id=78018 |