[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 12:34:08
|
Bugs item #1472941, was opened at 2006-04-19 14:32 Message generated for change (Settings changed) made by strigeus 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1472941&group_id=78018 |