Is there a Python function for changing the subject line of an Outlook mail item?
I have seen solutions for this using VBA. Was looking for a function/ method in python.
Thanks
Update: Here's what i am trying :
import win32com.client as win32
outlook = win32.gencache.EnsureDispatch('Outlook.Application')
mapi = outlook.GetNamespace('MAPI')
folder = mapi.GetDefaultFolder(6)
messages = folder.Items
# Change the current subject line to 'Testing subject change'
messages.GetFirst().Subject = 'Testing subject change'
However, the subject line doesn't change. Is there any specific function i should be using?