here is something to get you started? i would advise running up the outlook vba gui thing, and then viewing the object model, it will give you the available properties of the Mail object
Set objApp = GetObject(, "Outlook.Application") '#### Find existing instance of Outlook
If Err Then
WScript.Quit() '#### If Outlook isn't running, quit the script
'Set objApp = CreateObject("Outlook.Application") '#### uncomment this & comment out above line to get data even if Outlook isnt running
End If
Set objOutlook = objApp.GetNameSpace("MAPI") '#### Get MAPI namespace
Set objInbox = objOutlook.GetDefaultFolder(6).Items
intA = 0
For Each aMail In objInbox
If LCase(CStr(aMail.Subject)) = "unsubscribe" Then
intA = intA + 1
'Wscript.Echo aMail.Subject & aMail.SenderEmailAddress
Wscript.Echo aMail.SenderEmailAddress
End If
Next
wscript.echo intA