title: Python function for changing the subject line of an Outlook mail item
body: <p>Is there a Python function for changing the subject line of an Outlook mail item?</p>
  
  <p>I have seen solutions for this using VBA. Was looking for a function/ method in python.</p>
  
  <p>Thanks</p>
  
  <p><strong>Update</strong>:
  Here's what i am trying :</p>
  
  <pre><code>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'
  </code></pre>
  
  <p>However, the subject line doesn't change. Is there any specific function i should be using?</p>